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