Beispiel #1
0
 private void MainWindow_Loaded(object sender, RoutedEventArgs _e)
 {
     //Util.UI.HelpButtonHelper.EnableHelpButton(this, () =>
     //{
     //    try
     //    {
     //        Process.Start(App.Current.Resources["urlHelp"] as string);
     //    }
     //    catch (Exception e)
     //    {
     //        SGLogger<MainWindow>.Warn("can not open help url", e);
     //    }
     //});
     (DataContext as VMMainWindow).LoadAsync(() =>
     {
         SGLogger <MainWindow> .Info("Loaded");
         Dispatcher.Invoke(() =>
         {
             if (Settings.Default.IsFirstLaunch)
             {
                 new DialogContent.ContentDonate().Show();
             }
         });
     });
 }
        public void PlayOk()
        {
            SGLogger <AutumnBox_GUI_Calller> .Info("Playing ok");

            if (Settings.Default.NotifyOnFinish)
            {
                Sounds.OK.Play();
            }
        }
Beispiel #3
0
        public ContentConnectNetDevice()
        {
            InitializeComponent();
            DataContext = new VMContentConnectNetDevice()
            {
                OnCloseCallback = () =>
                {
                    SGLogger <ContentConnectNetDevice> .Info("??");

                    Finish();
                }
            };
        }
 private void MainWindow_Loaded(object sender, RoutedEventArgs _e)
 {
     ViewModel.LoadAsync(() =>
     {
         SGLogger <MainWindow> .Info("Loaded");
         Dispatcher.Invoke(() =>
         {
             if (Settings.Default.IsFirstLaunch)
             {
                 new DialogContent.ContentDonate().Show();
             }
         });
     });
 }