Changeset 32 for trunk/Forms/FormConnect.pas
- Timestamp:
- Jun 29, 2024, 7:58:36 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormConnect.pas
r31 r32 1 unit UFormConnect;1 unit FormConnect; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 7 ComCtrls, Spin, UDatabase;7 ComCtrls, Spin, DbEngine, FormEx; 8 8 9 9 type … … 11 11 { TFormConnect } 12 12 13 TFormConnect = class(TForm )13 TFormConnect = class(TFormEx) 14 14 ButtonXmlBrowse: TButton; 15 15 ButtonOk: TButton; … … 33 33 procedure ButtonXmlBrowseClick(Sender: TObject); 34 34 procedure ComboBoxDbEnginesChange(Sender: TObject); 35 procedure FormCreate(Sender: TObject); 35 private 36 FDbManager: TDbManager; 37 procedure SetDbManager(AValue: TDbManager); 36 38 public 37 39 procedure Load(ConnectProfile: TDbConnectProfile); … … 39 41 procedure ReloadDbEngines; 40 42 procedure UpdateInterface; 43 property DbManager: TDbManager read FDbManager write SetDbManager; 41 44 end; 42 45 … … 47 50 48 51 uses 49 UCore, UEngineXML, UEngineMySQL;52 EngineXML, EngineMySQL; 50 53 51 54 resourcestring … … 69 72 end; 70 73 71 procedure TFormConnect. FormCreate(Sender: TObject);74 procedure TFormConnect.SetDbManager(AValue: TDbManager); 72 75 begin 76 if FDbManager = AValue then Exit; 77 FDbManager := AValue; 73 78 ReloadDbEngines; 74 79 end; … … 110 115 try 111 116 ComboBoxDbEngines.Items.Clear; 112 for I := 0 to Core.DbManager.ClientTypes.Count - 1 do113 ComboBoxDbEngines.Items.AddObject( Core.DbManager.ClientTypes[I].Name,114 Core.DbManager.ClientTypes[I]);117 for I := 0 to DbManager.ClientTypes.Count - 1 do 118 ComboBoxDbEngines.Items.AddObject(DbManager.ClientTypes[I].Name, 119 DbManager.ClientTypes[I]); 115 120 finally 116 121 ComboBoxDbEngines.Items.Endupdate;
Note:
See TracChangeset
for help on using the changeset viewer.