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 */ } }
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(); }
void OnDialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs) { sorter.Sort(fileListGenerator.GetFiles(InputDirectories), OutputDirectory, GetFileOperatingMode()); }
private static async void ExtendedOpenedEventHandler(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs) { await Task.Delay(1200); eventArgs.Session.Close(); }
private void DialogHost_DialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs) { tmpImageClear(); }
/// <summary> /// Открытие окна авторизации/регистрации /// </summary> /// <param name="sender"></param> /// <param name="eventArgs"></param> private void DialogWindowLogin_DialogOpened(object sender, MaterialDesignThemes.Wpf.DialogOpenedEventArgs eventArgs) { entriRB.IsChecked = true; }