forked from motaz/turbobird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreatetrigger.pas
53 lines (40 loc) · 1017 Bytes
/
createtrigger.pas
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
unit CreateTrigger;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls, Buttons;
type
{ TfmCreateTrigger }
TfmCreateTrigger = class(TForm)
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
cbTables: TComboBox;
cxUpdate: TCheckBox;
cxDelete: TCheckBox;
cxInsert: TCheckBox;
edTriggerName: TEdit;
Label1: TLabel;
Label2: TLabel;
rbAfter: TRadioButton;
rbBefor: TRadioButton;
procedure BitBtn1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
fmCreateTrigger: TfmCreateTrigger;
implementation
{ TfmCreateTrigger }
procedure TfmCreateTrigger.BitBtn1Click(Sender: TObject);
begin
if (Trim(edTriggerName.Text) = '') or (not (cxDelete.Checked or cxInsert.Checked or cxUpdate.Checked)) then
MessageDlg('Incorrect configuration', mtError, [mbOk], 0)
else
ModalResult:= mrOK;
end;
initialization
{$I createtrigger.lrs}
end.