Changeset 37 for trunk/Forms/UMainForm.pas
- Timestamp:
- Mar 8, 2012, 3:11:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.pas
r36 r37 148 148 procedure TMainForm.UpdateInterface; 149 149 begin 150 ADisconnect.Enabled := Core.System. Database.Connected;151 AConnect.Enabled := not Core.System. Database.Connected;152 AImportStructure.Enabled := Core.System. Database.Connected;150 ADisconnect.Enabled := Core.System.Client.Connected; 151 AConnect.Enabled := not Core.System.Client.Connected; 152 AImportStructure.Enabled := Core.System.Client.Connected; 153 153 if Assigned(MainPanelForm) then 154 154 Caption := MainPanelForm.Caption + ' - ' + ApplicationInfo.Name … … 257 257 if LoginForm.ShowModal = mrOK then begin 258 258 with TConnectProfile(Core.Profiles[Core.LastProfile]) do begin 259 Core.System. Database.HostName:= HostName;260 Core.System. Database.Database:= Database;261 Core.System. Database.UserName:= Core.LastUserName;262 Core.System. Database.Password := Core.LastPassword;263 Core.System. Database.Port := Port;259 Core.System.Client.Host := HostName; 260 Core.System.Client.Schema := Database; 261 Core.System.Client.User := Core.LastUserName; 262 Core.System.Client.Password := Core.LastPassword; 263 Core.System.Client.Port := Port; 264 264 if Protocol = cpDirect then Core.Client := TChronisClientDirect.Create; 265 265 end; 266 266 try 267 Core.System. Database.Connect;267 Core.System.Client.Connect; 268 268 if Core.System.IsDatabaseEmpty then Core.System.ModuleSystem.Install; 269 269 Core.System.LoadTypes; … … 277 277 procedure TMainForm.ADisconnectExecute(Sender: TObject); 278 278 begin 279 if Core.System. Database.Connected then begin280 Core.System. Database.Disconnect;279 if Core.System.Client.Connected then begin 280 Core.System.Client.Disconnect; 281 281 TreeView1.Items.Clear; 282 282 Core.System.Types.Clear; … … 361 361 Groups.Client := Core.System.Client; 362 362 Groups.ObjectName := ObjectGroupTable; 363 Groups.SchemaName := Core.System. Database.Database;363 Groups.SchemaName := Core.System.Client.Schema; 364 364 Groups.Load; 365 365 for I := 0 to Groups.Objects.Count - 1 do begin … … 373 373 Objects.Client := Core.System.Client; 374 374 Objects.ObjectName := ObjectTable; 375 Objects.SchemaName := Core.System. Database.Database;376 Objects. SetCondition('Group', Obj.Properties.Values['Id']);375 Objects.SchemaName := Core.System.Client.Schema; 376 Objects.Condition := '`Group`="' + Obj.Properties.Values['Id'] + '"'; 377 377 Objects.Load; 378 378 for O := 0 to Objects.Objects.Count - 1 do begin
Note:
See TracChangeset
for help on using the changeset viewer.