コード例 #1
0
 private void MultiBtn_Click(object sender, EventArgs e)
 {
     ActStack.Push(val);
     val             = Doubler.MultiVal(val);
     ValLbl.Text     = $"Current value is {val}";
     CounterLbl.Text = $"Actions count {counter++}";
     if (Doubler.ResultCheck(Nval, val))
     {
         MessageBox.Show($"YOU DID IT!!!!\n Actions count {counter}");
     }
 }
コード例 #2
0
 private void StartBtn_Click(object sender, EventArgs e)
 {
     StartBtn.Hide();
     PlusBtn.Show();
     MultiBtn.Show();
     CounterLbl.Show();
     ValLbl.Show();
     NeedLbl.Show();
     Nval         = Doubler.RandVal();
     NeedLbl.Text = $"Need to get: {Nval}";
     CancelBtn.Show();
     CompActLbl.Show();
     RestartBtn.Show();
     CompActLbl.Text = $"Computer Actions count: {Doubler.ResSearch(Nval)}";
 }