Exemple #1
0
 private void ShowDebugWindowIfNeed()
 {
     //如果设置在启动时打开调试窗口
     if (Settings.Default.ShowDebuggingWindowNextLaunch)
     {
         //打开调试窗口
         App.Current.Dispatcher.Invoke(() =>
         {
             WinM.D("Log");
         });
     }
 }
Exemple #2
0
 public MainWindowV2()
 {
     InitializeComponent();
     AppLoader.Instance.Loaded += (s, e) =>
     {
         App.Current.Dispatcher.Invoke(() =>
         {
             Menu.Visibility = Visibility.Visible;
             if (Settings.Default.IsFirstLaunch)
             {
                 WinM.X("Donate");
             }
         });
     };
 }