示例#1
0
 private void mission_MouseEnter(object sender, MouseEventArgs e)
 {
     result1.Content = String.Format("Round 1 Result:\nSelected Players: {0}\nNumber of Fail: {1}", Presenter.GetResultName(0), Presenter.GetResultFail(0));
     result2.Content = String.Format("Round 2 Result:\nSelected Players: {0}\nNumber of Fail: {1}", Presenter.GetResultName(1), Presenter.GetResultFail(1));
     result3.Content = String.Format("Round 3 Result:\nSelected Players: {0}\nNumber of Fail: {1}", Presenter.GetResultName(2), Presenter.GetResultFail(2));
     result4.Content = String.Format("Round 4 Result:\nSelected Players: {0}\nNumber of Fail: {1}", Presenter.GetResultName(3), Presenter.GetResultFail(3));
     result5.Content = String.Format("Round 5 Result:\nSelected Players: {0}\nNumber of Fail: {1}", Presenter.GetResultName(4), Presenter.GetResultFail(4));
 }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int No_of_players = Int32.Parse(((Button)sender).Content.ToString());

            Presenter.NumOfPlayerClick(No_of_players);
        }