-
Notifications
You must be signed in to change notification settings - Fork 0
/
mform.cpp
55 lines (52 loc) · 1.75 KB
/
mform.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
53
54
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "mform.h"
#include "otdform.h"
#include "Predmetform.h"
#include "bokform.h"
#include "dmform.h"
#include "WaitFr.h"
#include "treeform.h"
#include "flogin.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "DBCtrlsEh"
#pragma link "DBLookupEh"
#pragma resource "*.dfm"
TFirstForm *FirstForm;
//---------------------------------------------------------------------------
__fastcall TFirstForm::TFirstForm(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TFirstForm::N6Click(TObject *Sender){
Close();
}
//---------------------------------------------------------------------------
//Îáðàáîò÷èê ìåíþ ãëàâíîãî îêíà
void __fastcall TFirstForm::N2Click(TObject *Sender){
switch (((TComponent *)Sender)->Tag){
case 1:OtdelForm->ShowModal();break;
case 2:PredForm->ShowModal();break;
case 3:BookForm->ShowModal();
}
}
//---------------------------------------------------------------------------
void __fastcall TFirstForm::N8Click(TObject *Sender){
MainForm->Show();
}
//---------------------------------------------------------------------------
//Åñëè îñóùåñòâëåíí âõîä ïîä ïîëüçîâàòåëåì, òî áëîêóðóþüñÿ êíîïêè äîñòóïà ê
//ñïðàâî÷íèêàì
void __fastcall TFirstForm::FormShow(TObject *Sender){
if(Login->Tag==0){
ToolButton2->Visible=false;
ToolButton3->Visible=false;
ToolButton4->Visible=false;
ToolButton5->Visible=false;
N1->Visible=false;
}
}
//---------------------------------------------------------------------------