예제 #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();
 }
예제 #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;
 }
예제 #3
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;
 }
예제 #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();
 }