コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            button.IsEnabled = false;
            string input = box.Text;

            box.Text = "";
            if (stage == -2) // Initial Play
            {
                button.Background = (SolidColorBrush)(new BrushConverter().ConvertFrom("#FFDDDDDD"));
                Presenter.PlayButtonClick();
            }
            else if (stage == -1)     //input no of player
            {
                Stage1(input);
            }
            else if (stage == 0)
            {
                Presenter.Stage0();
            }
            else if (stage == 1)     //input name of player
            {
                Presenter.Stage1(input);
            }
            else if (stage == 2)   //select players
            {
                Presenter.Stage2(input);
            }
        }
コード例 #2
0
 private void Play_Click(object sender, RoutedEventArgs e)
 {
     Presenter.PlayButtonClick();
 }