void app_OnStartGameNow(GeniusTetrisPlayer obj) { ModalService.CloseModal(); this.board.GameOver = Visibility.Collapsed; app.CurrentGame.Start(); this.board.Focus(); }
void YesClick(object sender, RoutedEventArgs e) { ModalService.CloseModal(); if (_OkClick != null) { _OkClick(this, e); } }
void NoClick(object sender, RoutedEventArgs e) { ModalService.CloseModal(); if (_CancelClick != null) { _CancelClick(this, e); } }
void OnModalClose(object sender, System.Windows.RoutedEventArgs e) { if (ModalContent.Children.Count == 1) { IModalDialog dlg = ModalContent.Children[0] as IModalDialog; if (dlg != null) { dlg.CloseButtonClick(); } } ModalService.CloseModal(); //this.ModalHost.Visibility = Visibility.Collapsed; //foreach (UIElement element in this.ModalContent.Children) //{ // if (element is IDisposable) // ((IDisposable)element).Dispose(); //} //this.ModalContent.Children.Clear(); }
void OkClick(object sender, RoutedEventArgs e) { ModalService.CloseModal(); }
/// <summary> /// The RetryCommand Method. /// </summary> private void Retry() { _playbackService.RetryCard(); ModalService.CloseModal(); }
/// <summary> /// The CustomCommand Method. /// </summary> private void Custom() { //// Requires some method? ModalService.CloseModal(); }
void CloseOkClick(object sender, RoutedEventArgs e) { ((GameOptions)this.DataContext).Save(); ModalService.CloseModal(); }