-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUnit9.cpp
47 lines (41 loc) · 1.26 KB
/
Unit9.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit9.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "cspin"
#pragma resource "*.dfm"
TForm9 *Form9;
//---------------------------------------------------------------------------
__fastcall TForm9::TForm9(TComponent* Owner)
: TForm(Owner)
{
result = "";
reset_val = 0;
}
//---------------------------------------------------------------------------
void __fastcall TForm9::Button1Click(TObject *Sender)
{
result = this->counterDDL->Text;
reset_val = this->input_reset->Text.ToInt();
this->Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm9::Button2Click(TObject *Sender)
{
result = "";
reset_val = -1;
this->Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm9::chkWithTimerClick(TObject *Sender)
{
label_reset->Visible = chkWithTimer->Checked;
input_reset->Visible = chkWithTimer->Checked;
if(false == chkWithTimer->Checked)
{
this->input_reset->Text = "0";
}
}
//---------------------------------------------------------------------------