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(); }
public MainWindow(WoopsaAdsController controller) { InitializeComponent(); this.controller = controller; ConfigWoopsa_TabControl.DataContext = this; diagnostic = new DiagnosticWindow(); this.Width = 0; this.Height = 0; WindowStyle = WindowStyle.None; diagnostic.InitWindow(); MyNotifyIcon.Visibility = Visibility.Visible; }
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(); }