Exemple #1
0
        private void SinglePlayer_MouseDown(object sender, MouseButtonEventArgs e)
        {
            player.Pause();
            SinglePlayerWindow SPW = new SinglePlayerWindow();

            SPW.Show();
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IsRestart"/> class.
 /// </summary>
 /// <param name="parentWindow">The parent window.</param>
 public IsRestart(SinglePlayerWindow parentWindow)
 {
     InitializeComponent();
     this.parentWindow = parentWindow;
 }
Exemple #3
0
        /// <summary>
        /// Execute.
        /// </summary>
        /// <param name="result"></param>
        /// <param name="viewModel"></param>
        /// <returns></returns>
        public Window Execute(string result, ViewModel viewModel)
        {
            SinglePlayerWindow window = new SinglePlayerWindow(result, viewModel);

            return(window);
        }