- Timestamp:
- Jul 31, 2009, 3:04:35 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 OpenWinBox.dsk 3 3 *.dcu 4 *.~dsk
-
- Property svn:ignore
-
trunk/OpenWinBox.dpr
r1 r2 7 7 UApplicationInfo in 'UApplicationInfo.pas', 8 8 URegistry in 'URegistry.pas', 9 UHostAddressList in 'UHostAddressList.pas'; 9 UHostAddressList in 'UHostAddressList.pas', 10 URouterOS in 'URouterOS.pas', 11 UMainForm in 'UMainForm.pas' {MainForm}; 10 12 11 13 {$R *.res} … … 15 17 ReportMemoryLeaksOnShutdown := DebugHook <> 0; 16 18 {$WARN SYMBOL_PLATFORM ON} 19 17 20 Application.Initialize; 21 Application.ShowMainForm := False; 18 22 Application.Title := 'OpenWinBox'; 19 23 Application.CreateForm(TLoaderForm, LoaderForm); 24 Application.CreateForm(TMainForm, MainForm); 20 25 Application.Run; 21 26 end. -
trunk/ULoaderForm.dfm
r1 r2 58 58 TabOrder = 0 59 59 Text = 'Edit1' 60 ExplicitWidth = 15961 60 end 62 61 object Edit2: TEdit … … 68 67 TabOrder = 1 69 68 Text = 'Edit2' 70 ExplicitWidth = 15971 69 end 72 70 object ButtonConnect: TButton … … 79 77 Default = True 80 78 TabOrder = 2 81 ExplicitLeft = 25479 OnClick = ButtonConnectClick 82 80 end 83 81 object CheckBox1: TCheckBox … … 113 111 TabOrder = 6 114 112 Text = 'Edit4' 115 ExplicitWidth = 159116 113 end 117 114 object Edit3: TEdit … … 124 121 TabOrder = 7 125 122 Text = 'Edit3' 126 ExplicitWidth = 159127 123 end 128 124 object ListView1: TListView … … 152 148 OnData = ListView1Data 153 149 OnSelectItem = ListView1SelectItem 154 ExplicitWidth = 329155 ExplicitHeight = 86156 150 end 157 151 object ButtonSave: TButton … … 164 158 TabOrder = 9 165 159 OnClick = ButtonSaveClick 166 ExplicitLeft = 253167 160 end 168 161 object ButtonRemove: TButton … … 176 169 TabOrder = 10 177 170 OnClick = ButtonRemoveClick 178 ExplicitLeft = 254179 171 end 180 172 object ButtonTools: TButton … … 187 179 TabOrder = 11 188 180 OnClick = ButtonToolsClick 189 ExplicitLeft = 253190 181 end 191 182 object PopupMenu1: TPopupMenu -
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.