-
Notifications
You must be signed in to change notification settings - Fork 1
/
Unit7.cpp
35 lines (33 loc) · 1.02 KB
/
Unit7.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
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit7.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "cspin"
#pragma resource "*.dfm"
TForm7 *Form7;
//---------------------------------------------------------------------------
__fastcall TForm7::TForm7(TComponent* Owner)
: TForm(Owner)
{
Result=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm7::revKeyPress(TObject *Sender, System::WideChar &Key)
{
if(Key==13) this->Button1->Click();
}
//---------------------------------------------------------------------------
void __fastcall TForm7::Button1Click(TObject *Sender)
{
Result=true;
Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm7::Button2Click(TObject *Sender)
{
Result=false;
Close();
}
//---------------------------------------------------------------------------