-
Notifications
You must be signed in to change notification settings - Fork 1
/
Unit4.pas
82 lines (70 loc) · 1.88 KB
/
Unit4.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
unit Unit4;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, AdvGlassButton, ComCtrls, AdvCircularProgress;
type
TForm4 = class(TForm)
ProgressBar1: TProgressBar;
Label16: TLabel;
Label17: TLabel;
AdvGlassButton2: TAdvGlassButton;
AdvGlassButton15: TAdvGlassButton;
AdvGlassButton1: TAdvGlassButton;
OpenDialog1: TOpenDialog;
Label6: TLabel;
AdvCircularProgress1: TAdvCircularProgress;
procedure AdvGlassButton2Click(Sender: TObject);
procedure AdvGlassButton15Click(Sender: TObject);
procedure AdvGlassButton1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form4: TForm4;
implementation
uses Unit1;
{$R *.dfm}
procedure TForm4.AdvGlassButton15Click(Sender: TObject);
begin
Form1.memo1.Clear;
Form1.Button3.Click;
startedUpdate:=true;
end;
procedure TForm4.AdvGlassButton1Click(Sender: TObject);
begin
if startedUpdate then begin
if MessageDlg('Âû äåéñòâèòåëüíî õîòèòå îñòàíîâèòü îáíîâëåíèå ÏÎ?', mtCustom, [mbYes, mbNo], 0) = mrYes then begin
Form4.Close;
end;
end
else
Form4.Close;
end;
procedure TForm4.AdvGlassButton2Click(Sender: TObject);
begin
AdvCircularProgress1.Enabled := false;
AdvCircularProgress1.Visible := false;
Label6.Caption := '';
ProgressBar1.Position := 0;
Form1.Button1.Click;
end;
procedure TForm4.FormClose(Sender: TObject; var Action: TCloseAction);
begin
AdvGlassButton2.Enabled := true;
AdvCircularProgress1.Enabled := false;
AdvCircularProgress1.Visible := false;
Form4.AdvGlassButton15.Enabled := false;
Label6.Caption := '';
Label16.Caption := '';
boot_mode_step := 0;
boot_mode := 0;
ProgressBar1.Position := 0;
ProgressBar1.Visible := false;
Form1.Button6.Click;
Form1.Visible := true;
end;
end.