| 33 |
Button4: TButton; |
Button4: TButton; |
| 34 |
OpenTextFileDialog1: TOpenTextFileDialog; |
OpenTextFileDialog1: TOpenTextFileDialog; |
| 35 |
CheckBox1: TCheckBox; |
CheckBox1: TCheckBox; |
| 36 |
|
DriveComboBox1: TDriveComboBox; |
| 37 |
|
Panel1: TPanel; |
| 38 |
procedure CloseButtonClick(Sender: TObject); |
procedure CloseButtonClick(Sender: TObject); |
| 39 |
procedure Action1Execute(Sender: TObject); |
procedure Action1Execute(Sender: TObject); |
| 40 |
procedure FormResize(Sender: TObject); |
procedure FormResize(Sender: TObject); |
| 104 |
var |
var |
| 105 |
s1, s2, s3: string; |
s1, s2, s3: string; |
| 106 |
z: TZipFile; |
z: TZipFile; |
| 107 |
|
x: Boolean; |
| 108 |
begin |
begin |
| 109 |
s3 := ''; |
s3 := ''; |
| 110 |
Preview(Edit1.Text + '\' + ComboBox1.Text); |
x := Copy(Label1.Caption,1,10) <> 'Click here'; |
| 111 |
if Sender = Button2 then |
if (Sender = Button1)or(x = true) then |
| 112 |
|
Preview(Edit1.Text + '\' + ComboBox1.Text); |
| 113 |
|
if (Sender = Button2)and(x = true) then |
| 114 |
begin |
begin |
| 115 |
z := TZipFile.Create; |
z := TZipFile.Create; |
| 116 |
try |
try |
| 184 |
if (t = DirectoryListBox1.Directory) and (i < DirectoryListBox1.ItemIndex) |
if (t = DirectoryListBox1.Directory) and (i < DirectoryListBox1.ItemIndex) |
| 185 |
then |
then |
| 186 |
begin |
begin |
| 187 |
if i < 2 then |
if i < 1 then |
| 188 |
begin |
begin |
| 189 |
t := t + DirectoryListBox1.Items[DirectoryListBox1.ItemIndex]; |
t := t + DirectoryListBox1.Items[DirectoryListBox1.ItemIndex]; |
| 190 |
end |
end |
| 280 |
|
|
| 281 |
procedure TForm1.Label1Click(Sender: TObject); |
procedure TForm1.Label1Click(Sender: TObject); |
| 282 |
begin |
begin |
| 283 |
if (System.SysUtils.DirectoryExists(Edit1.Text) = True) and |
if System.SysUtils.DirectoryExists(Edit1.Text) = false then |
| 284 |
(MessageDlg('Change Save-Dir?', mtInformation, [mbOK, mbCancel], 0) = mrOK) |
MkDir(Edit1.Text); |
| 285 |
then |
if MessageDlg('Change Save-Dir?', mtInformation, [mbOK, mbCancel], 0) = mrOK then |
| 286 |
Label1.Caption := Edit1.Text; |
Label1.Caption := Edit1.Text; |
| 287 |
end; |
end; |
| 288 |
|
|