| 2263 |
kivins |
1 |
//---------------------------------------------------------------------------
|
|
|
2 |
|
|
|
3 |
#include <vcl.h>
|
|
|
4 |
#pragma hdrstop
|
|
|
5 |
|
|
|
6 |
#include "ParameterScope.h"
|
|
|
7 |
//---------------------------------------------------------------------------
|
|
|
8 |
#pragma package(smart_init)
|
|
|
9 |
#pragma resource "*.dfm"
|
|
|
10 |
TParameterScopeForm *ParameterScopeForm;
|
|
|
11 |
//---------------------------------------------------------------------------
|
|
|
12 |
__fastcall TParameterScopeForm::TParameterScopeForm(TComponent* Owner)
|
|
|
13 |
: TForm(Owner)
|
|
|
14 |
{
|
|
|
15 |
}
|
|
|
16 |
//---------------------------------------------------------------------------
|
|
|
17 |
void __fastcall TParameterScopeForm::BitBtn1Click(TObject *Sender)
|
|
|
18 |
{
|
|
|
19 |
m_Scope = 1;
|
|
|
20 |
|
|
|
21 |
ModalResult = mrOk;
|
|
|
22 |
}
|
|
|
23 |
//---------------------------------------------------------------------------
|
|
|
24 |
void __fastcall TParameterScopeForm::BitBtn2Click(TObject *Sender)
|
|
|
25 |
{
|
|
|
26 |
m_Scope = 2;
|
|
|
27 |
|
|
|
28 |
ModalResult = mrOk;
|
|
|
29 |
}
|
|
|
30 |
//---------------------------------------------------------------------------
|
|
|
31 |
void __fastcall TParameterScopeForm::BitBtn3Click(TObject *Sender)
|
|
|
32 |
{
|
|
|
33 |
m_Scope = 3;
|
|
|
34 |
|
|
|
35 |
ModalResult = mrOk;
|
|
|
36 |
}
|
|
|
37 |
//---------------------------------------------------------------------------
|
|
|
38 |
|
|
|
39 |
unsigned short TParameterScopeForm::getScope()
|
|
|
40 |
{
|
|
|
41 |
return m_Scope;
|
|
|
42 |
}
|
|
|
43 |
|