protected override void OnStartup(StartupEventArgs e) { Current.DispatcherUnhandledException += OnDispatcherUnhandledException; base.OnStartup(e); controller = new WoopsaAdsController(); if (controller.runAtStartUp) Thread.Sleep(5000); MainWindow = new MainWindow(controller); ((MainWindow)MainWindow).InitWindow(); controller.Load(); }
protected override void OnStartup(StartupEventArgs e) { Current.DispatcherUnhandledException += OnDispatcherUnhandledException; base.OnStartup(e); controller = new WoopsaAdsController(); if (controller.runAtStartUp) { Thread.Sleep(5000); } MainWindow = new MainWindow(controller); ((MainWindow)MainWindow).InitWindow(); controller.Load(); }