-
Notifications
You must be signed in to change notification settings - Fork 1
/
UserInputConfirmationDlg.pas
84 lines (67 loc) · 2.46 KB
/
UserInputConfirmationDlg.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{ ------------------------------------------------------------------- }
{ Unit: UserInputConfirmationDlg.pas }
{ Project: WERF Framework - SWMM Converter }
{ Version: 2.0 }
{ Date: 2/28/2014 }
{ Author: Gesoyntec (D. Pankani) }
{ }
{ Delphi Pascal unit that dispalys a dialog that show the a summary }
{ of the imputs entered by the user }
{ ------------------------------------------------------------------- }
unit UserInputConfirmationDlg;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Grids, Vcl.StdCtrls, Vcl.ExtDlgs,
Vcl.ExtCtrls, Vcl.ComCtrls, Vcl.Imaging.GIFImg;
type
TProgressCallback = procedure(InProgressOverall: TProgressBar) of Object;
type
TUserInputVerificationFrm = class(TForm)
Label1: TLabel;
txtSwmmFilePath: TLabel;
txtSWMMNodeID: TLabel;
lblNumberOfConstituents: TLabel;
StringGrid1: TStringGrid;
Label9: TLabel;
txtErrors: TLabel;
Label2: TLabel;
btnRun: TButton;
btnCancel: TButton;
/// <summary>
/// Handler for moving forward and dismissing user verification dialog to
/// be used when the user is sure that all the input has been properly
/// entered
/// </summary>
/// <param name="Sender">
/// Owner
/// </param>
procedure btnRunClick(Sender: TObject);
/// <summary>
/// Handler for canceling and dismissing user verification dialog to be
/// used if input summary shows unintended input
/// </summary>
/// <param name="Sender">
/// Owner
/// </param>
procedure btnCancelClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
//procedure ShowProgress(InCallback: TProgressCallback);
var
SWMMUserInputVerificationFrm: TUserInputVerificationFrm;
implementation
{$R *.dfm}
procedure TUserInputVerificationFrm.btnCancelClick(Sender: TObject);
begin
ModalResult := mrCancel;
end;
procedure TUserInputVerificationFrm.btnRunClick(Sender: TObject);
begin
ModalResult := mrOk;
end;
end.