Пример #1
0
 void app_OnStartGameNow(GeniusTetrisPlayer obj)
 {
     ModalService.CloseModal();
     this.board.GameOver = Visibility.Collapsed;
     app.CurrentGame.Start();
     this.board.Focus();
 }
Пример #2
0
 void YesClick(object sender, RoutedEventArgs e)
 {
     ModalService.CloseModal();
     if (_OkClick != null)
     {
         _OkClick(this, e);
     }
 }
Пример #3
0
 void NoClick(object sender, RoutedEventArgs e)
 {
     ModalService.CloseModal();
     if (_CancelClick != null)
     {
         _CancelClick(this, e);
     }
 }
Пример #4
0
 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();
 }
Пример #5
0
 void OkClick(object sender, RoutedEventArgs e)
 {
     ModalService.CloseModal();
 }
Пример #6
0
 /// <summary>
 /// The RetryCommand Method.
 /// </summary>
 private void Retry()
 {
     _playbackService.RetryCard();
     ModalService.CloseModal();
 }
Пример #7
0
 /// <summary>
 /// The CustomCommand Method.
 /// </summary>
 private void Custom()
 {
     //// Requires some method?
     ModalService.CloseModal();
 }
Пример #8
0
 void CloseOkClick(object sender, RoutedEventArgs e)
 {
     ((GameOptions)this.DataContext).Save();
     ModalService.CloseModal();
 }