private static async void OpenEvent(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
 {
     while (loading.forgeProgress.Value != 100)
     {
         await Task.Delay(2000);
     }
     try
     {
         eventArgs.Session.Close();
     }
     catch { }
 }
        private static async void erroropenEvent(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
        {
            try
            {
                await Task.Delay(1200);

                eventArgs.Session.Close();
            }
            catch (TaskCanceledException)
            { }
            catch
            { }
        }
        private static async void ExtendedOpenedEventHandler(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
        {
            _cancellationTokenSource = new CancellationTokenSource();
            try
            {
                await Task.Delay(900, _cancellationTokenSource.Token);

                eventArgs.Session.Close();
            }
            catch (TaskCanceledException)
            {
                /*cancelled by user...tidy up and dont close as will have already closed */
            }
        }
示例#4
0
 private void DialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
 {
     Search.IsEnabled = false;
 }
 private void DialogWindowWatchMovie_DialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
 {
     watchPriceValue.Text = "0";
 }
 private void welcomeDialogHost_DialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
 {
     scrollWelcomeDialog.ScrollToTop();
 }
示例#7
0
 void OnDialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
 {
     sorter.Sort(fileListGenerator.GetFiles(InputDirectories), OutputDirectory, GetFileOperatingMode());
 }
示例#8
0
        private static async void ExtendedOpenedEventHandler(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
        {
            await Task.Delay(1200);

            eventArgs.Session.Close();
        }
示例#9
0
 private void DialogHost_DialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
 {
     tmpImageClear();
 }
示例#10
0
 /// <summary>
 /// Открытие окна авторизации/регистрации
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="eventArgs"></param>
 private void DialogWindowLogin_DialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs)
 {
     entriRB.IsChecked = true;
 }