Changeset 2 for trunk/ULoaderForm.pas
- Timestamp:
- Jul 31, 2009, 3:04:35 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 OpenWinBox.dsk 3 3 *.dcu 4 *.~dsk
-
- Property svn:ignore
-
trunk/ULoaderForm.pas
r1 r2 5 5 uses 6 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 7 Dialogs, ComCtrls, StdCtrls, Menus, UHostAddressList; 7 Dialogs, ComCtrls, StdCtrls, Menus, UHostAddressList, IdTelnet, 8 tlntsend, ssl_openssl, ssl_openssl_lib, ssl_cryptlib; 8 9 9 10 type … … 44 45 procedure ImportAddresses1Click(Sender: TObject); 45 46 procedure RemoveAllAddresses1Click(Sender: TObject); 47 procedure ButtonConnectClick(Sender: TObject); 46 48 private 47 49 HostAddressList: THostAddressList; … … 62 64 63 65 uses 64 UApplicationInfo, URegistry, Registry; 66 UApplicationInfo, URegistry, Registry, IdTCPClient, IdTCPConnection, 67 UMainForm; 65 68 66 69 {$R *.dfm} … … 112 115 PopupPoint := ClientToScreen(PopupPoint); 113 116 PopupMenu1.Popup(PopupPoint.X, PopupPoint.Y); 117 end; 118 119 procedure TLoaderForm.ButtonConnectClick(Sender: TObject); 120 begin 121 MainForm.Show; 122 MainForm.RouterOS.Connect(Edit1.Text, Edit2.Text, Edit3.Text); 123 Hide; 114 124 end; 115 125 … … 201 211 202 212 procedure TLoaderForm.LoadFromRegistry; 203 var204 I: Integer;205 NewHostAddress: THostAddress;206 213 begin 207 214 with TRegistryEx.Create do try … … 209 216 OpenKey(RegistryKey, True); 210 217 CheckBox3.Checked := ReadBoolWithDefault('LoadPreviousSession', True); 218 CheckBox2.Checked := ReadBoolWithDefault('SecureMode', True); 211 219 CheckBox1.Checked := ReadBoolWithDefault('KeepPassword', False); 212 CheckBox2.Checked := ReadBoolWithDefault('SecureMode', True);213 220 if CheckBox3.Checked then begin 214 221 Edit1.Text := ReadStringWithDefault('Address', ''); … … 270 277 if CheckBox1.Checked then WriteString('Password', Edit3.Text) 271 278 else WriteString('Password', ''); 272 WriteBool('SecureM ethod', CheckBox2.Checked);279 WriteBool('SecureMode', CheckBox2.Checked); 273 280 WriteBool('LoadPreviouisSession', CheckBox3.Checked); 274 281 finally
Note:
See TracChangeset
for help on using the changeset viewer.