Beispiel #1
0
        /// <summary>
        /// Handles the Click event of the StartBtun control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        private void StartBtun_Click(object sender, RoutedEventArgs e)
        {
            this.mvm.GenerateGame();
            PlayMultiWindow pmw = new PlayMultiWindow(this.model);

            pmw.Show();
            this.Hide();
        }
Beispiel #2
0
        /// <summary>
        /// Handles the Click event of the JoinBtun control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        private void JoinBtun_Click(object sender, RoutedEventArgs e)
        {
            this.mvm.JoinGame();
            PlayMultiWindow pw = new PlayMultiWindow(this.model);

            pw.Show();
            this.Hide();
        }