Example #1
0
 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();
 }
Example #2
0
 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;
 }
 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;
 }
Example #4
0
 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();
 }