Changeset 429 for ModularSystem/Demo/UMainForm.pas
- Timestamp:
- Oct 17, 2012, 1:21:41 PM (12 years ago)
- Location:
- ModularSystem/Demo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ModularSystem/Demo
- Property svn:ignore
-
old new 5 5 Demo.lps 6 6 Demo 7 heaptrclog.trc
-
- Property svn:ignore
-
ModularSystem/Demo/UMainForm.pas
r428 r429 1 1 unit UMainForm; 2 2 3 {$mode objfpc}{$H+}3 {$mode delphi}{$H+} 4 4 5 5 interface … … 32 32 MenuItem4: TMenuItem; 33 33 MenuItem5: TMenuItem; 34 ModuleManager: TModuleManager; 34 35 PopupMenu1: TPopupMenu; 35 36 procedure AModuleStartExecute(Sender: TObject); … … 47 48 procedure RegisterModules; 48 49 public 49 ModuleManager: TModuleManager;50 procedure Log(Text: string); 50 51 procedure RefreshList; 51 52 end; … … 63 64 64 65 uses 65 UModuleUser, UModuleBase, UModuleACL ;66 UModuleUser, UModuleBase, UModuleACL, ULogForm; 66 67 67 68 … … 106 107 end; 107 108 109 procedure TMainForm.Log(Text: string); 110 begin 111 LogForm.Memo1.Lines.Add(Text); 112 end; 113 108 114 procedure TMainForm.RefreshList; 109 115 begin … … 116 122 procedure TMainForm.FormCreate(Sender: TObject); 117 123 begin 118 ModuleManager := TModuleManager.Create(nil);119 124 RegisterModules; 120 125 end; … … 220 225 procedure TMainForm.FormDestroy(Sender: TObject); 221 226 begin 222 FreeAndNil(ModuleManager);223 227 end; 224 228 … … 226 230 begin 227 231 RefreshList; 232 LogForm.Show; 228 233 end; 229 234
Note:
See TracChangeset
for help on using the changeset viewer.