- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
procedure Load_flashDEF_setings;
var
Reg: TRegistry;
RegKeyPath: string;
begin
Reg := TRegistry.Create;
try
with Reg do begin
RootKey := HKEY_CURRENT_USER;
RegKeyPath := 'Software\fuckinSoft';
OpenKey(RegKeyPath, True);
if ReadBool('Wipe_File')=false then begin Main.frmMain.CBx_wipe_file.Checked:=false;
end
else
if ReadBool('Wipe_File')=true then begin Main.frmMain.CBx_wipe_file.Checked:=true;
end
else
if ReadBool('Def_Module')=false then begin Main.frmMain.CBx_defence_module.Checked:=false;
end
else
if ReadBool('Def_Module')=true then begin Main.frmMain.CBx_defence_module.Checked:=true;
end
end
finally
Reg.CloseKey;
Reg.Free;
end;
end;
procedure Save_flashDEF_setings;
var
Reg: TRegistry;
RegKeyPath: string;
begin
Reg := TRegistry.Create;
try
with Reg do begin
RootKey := HKEY_CURRENT_USER;
RegKeyPath := 'Software\fuckinSoft';
OpenKey(RegKeyPath, True);
if Main.frmMain.CBx_wipe_file.Checked=true then begin WriteBool('Wipe_File', true);
end
else
if Main.frmMain.CBx_wipe_file.Checked=false then begin WriteBool('Wipe_File', false);
end
else
if Main.frmMain.CBx_defence_module.Checked=true then begin WriteBool('Def_Module', true);
end
else
if Main.frmMain.CBx_defence_module.Checked=false then begin WriteBool('Def_Module', false);
end
end
finally
Reg.CloseKey;
Reg.Free;
end;
end;
guest 23.04.2009 23:40 # +1
пестата! я сел перечитывать все книги по делфе. не будить.