예제 #1
0
 protected override Window CreateWindowCore(TemplateContext context, ICollection<Controller> controllers, bool isMain, bool activateControllersImmediatelly) {
     Tracing.Tracer.LogVerboseValue("WinApplication.CreateWindowCore.activateControllersImmediatelly", activateControllersImmediatelly);
     var windowCreatingEventArgs = new WindowCreatingEventArgs();
     OnWindowCreating(windowCreatingEventArgs);
     return windowCreatingEventArgs.Handled? windowCreatingEventArgs.Window
                : new XpandWebWindow(this, context, controllers, isMain, activateControllersImmediatelly);
 }
예제 #2
0
 protected virtual void OnWindowCreating(WindowCreatingEventArgs e) {
     EventHandler<WindowCreatingEventArgs> handler = WindowCreating;
     if (handler != null) handler(this, e);
 }