forked from yavfast/dbg-spider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuFeedback.pas
63 lines (51 loc) · 1.38 KB
/
uFeedback.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
53
54
55
56
57
58
59
60
61
62
63
unit uFeedback;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
Vcl.Buttons, System.Actions, Vcl.ActnList;
type
TfrmFeedback = class(TForm)
cbbType: TComboBoxEx;
lbFeedbackType: TLabel;
lbMessage: TLabel;
mMessage: TMemo;
btnSend: TBitBtn;
AL: TActionList;
acSend: TAction;
lbEmail: TLabel;
eEMail: TEdit;
procedure acSendExecute(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
function GetFeedbackText: String;
function GetFeedbackType: String;
{ Private declarations }
public
property FeedbackType: String read GetFeedbackType;
property FeedbackText: String read GetFeedbackText;
end;
var
frmFeedback: TfrmFeedback;
implementation
uses
uShareData;
{$R *.dfm}
procedure TfrmFeedback.acSendExecute(Sender: TObject);
begin
ModalResult := mrOk;
end;
procedure TfrmFeedback.FormCreate(Sender: TObject);
begin
cbbType.ItemIndex := 0;
mMessage.Text := '';
end;
function TfrmFeedback.GetFeedbackText: String;
begin
Result := Format('[%s] %s', [eEMail.Text, mMessage.Text]);
end;
function TfrmFeedback.GetFeedbackType: String;
begin
Result := cbbType.ItemsEx.ComboItems[cbbType.ItemIndex].Caption;
end;
end.