Changeset 107 for trunk/Modules/News/UModuleNews.pas
- Timestamp:
- Oct 10, 2012, 2:50:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/UModuleNews.pas
r105 r107 6 6 7 7 uses 8 Classes, SysUtils, UModularSystem, SpecializedDictionary, UModuleBase; 8 Classes, SysUtils, UModularSystem, SpecializedDictionary, UModuleBase, UNews, 9 UHTTPServer, UModuleUser; 9 10 10 11 type … … 14 15 public 15 16 ModuleBase: TModuleBase; 16 procedure Show; 17 News: TNews; 18 function Show(HandlerData: THTTPHandlerData): string; 17 19 constructor Create(Owner: TComponent); override; 18 20 destructor Destroy; override; … … 32 34 { TModuleNews } 33 35 34 procedure TModuleNews.Show;36 function TModuleNews.Show(HandlerData: THTTPHandlerData): string; 35 37 begin 36 38 Result := News.Show(HandlerData); 37 39 end; 38 40 … … 57 59 BeforeStart; 58 60 ModuleBase := TModuleBase(Manager.FindModuleByName('Base')); 59 UserControlPage := TUserControlPage.Create(nil);60 ModuleBase.Pages.RegisterPage(UserControlPage, 'uzivatel');61 //UserControlPage := TUserControlPage.Create(nil); 62 //ModuleBase.Pages.RegisterPage(UserControlPage, 'uzivatel'); 61 63 //RegisterPage(TUserControlPage, UserControlPage, ''); 64 News := TNews.Create; 65 News.ModuleUser := TModuleUser(Manager.FindModuleByName('User')); 66 News.Database := ModuleBase.Session.Database; 67 News.ModuleBase := ModuleBase; 62 68 AfterStart; 63 69 end; … … 66 72 begin 67 73 BeforeStop; 68 ModuleBase.Pages.UnregisterPage(UserControlPage); 69 FreeAndNil(UserControlPage); 74 FreeAndNil(News); 75 //ModuleBase.Pages.UnregisterPage(UserControlPage); 76 //FreeAndNil(UserControlPage); 70 77 ModuleBase := nil; 71 78 AfterStop;
Note:
See TracChangeset
for help on using the changeset viewer.