Exemplo n.º 1
0
        private void DisplayPopupWindow(object sender, PopupWindowEventArgs e)
        {
            if (e.ViewModel == null)
            {
                return;
            }

            PopupWindow popupWin = new PopupWindow
            {
                Owner       = this,
                DataContext = e.ViewModel
            };

            popupWin.Show();
        }
Exemplo n.º 2
0
 public void PopupWindow_OnPopupResult(object sender, PopupWindowEventArgs e)
 {
     if (e.Result == PopupResult.No)
     {
         Paused = false;
     }
     else if (e.Result == PopupResult.Yes)
     {
         StageManager.Singleton.NextStage = "Menu";
     }
 }
Exemplo n.º 3
0
 public void PopupWindow_OnPopupResult(object sender, PopupWindowEventArgs e)
 {
     if (e.Result == PopupResult.Ok)
     {
         Paused = false;
     }
 }