Changeset 9 for trunk/Forms/UFormDatabases.pas
- Timestamp:
- Jan 25, 2015, 9:41:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormDatabases.pas
r6 r9 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 Menus, ActnList ;9 Menus, ActnList, UDatabase; 10 10 11 11 type … … 42 42 { private declarations } 43 43 public 44 SelectedDatabase: TDatabase; 44 45 procedure ReloadList; 45 46 procedure UpdateInterface; … … 54 55 55 56 uses 56 UCore, U Database, UFormTables, UFormConnect;57 UCore, UFormTables, UFormConnect; 57 58 58 59 { TFormDatabases } … … 65 66 procedure TFormDatabases.AOpenExecute(Sender: TObject); 66 67 begin 67 if Assigned(ListView1.Selected) then 68 with TDatabase(ListView1.Selected.Data) do begin 69 Load; 70 FormTables.Database := TDatabase(ListView1.Selected.Data); 71 FormTables.ShowModal; 68 if Assigned(ListView1.Selected) then begin 69 SelectedDatabase := TDatabase(ListView1.Selected.Data); 70 ModalResult := mrOk; 72 71 end; 73 72 end;
Note:
See TracChangeset
for help on using the changeset viewer.