-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStaticsQuery.cpp
52 lines (49 loc) · 1.96 KB
/
StaticsQuery.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
47
48
49
50
51
52
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "StaticsQuery.h"
#include "doseshell.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "RzPanel"
#pragma link "RzRadGrp"
#pragma link "RzLabel"
#pragma link "RzButton"
#pragma resource "*.dfm"
TFormStaticQuery *FormStaticQuery;
//---------------------------------------------------------------------------
__fastcall TFormStaticQuery::TFormStaticQuery(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TFormStaticQuery::FormClose(TObject *Sender,
TCloseAction &Action)
{
Action = caFree;
}
//---------------------------------------------------------------------------
void __fastcall TFormStaticQuery::RzBitBtnCancelClick(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
void __fastcall TFormStaticQuery::FormCreate(TObject *Sender)
{
this->RzRadioGroupStaticsType->Buttons[0]->Checked = true;
}
//---------------------------------------------------------------------------
void __fastcall TFormStaticQuery::RzBitBtnOKClick(TObject *Sender)
{
Hide();
if(true==this->RzRadioGroupStaticsType->Buttons[0]->Checked){ //measurement dose analysis
FormMain->showMeasureDoseStatic();
}else if(true==this->RzRadioGroupStaticsType->Buttons[1]->Checked){ //calculate dose analysis
FormMain->showCalculateDoseStatic();
}else if(true==this->RzRadioGroupStaticsType->Buttons[2]->Checked){ //check result analysis
MessageBox(this->Handle,"If there are multi-checkType selected,the default prior order is GAMMA>DTA>DD","Warning!",MB_OK);
FormMain->showCheckResultStatic();
}
Close();
}
//---------------------------------------------------------------------------