コード例 #1
0
 private void ButtonReset_Click(object sender, EventArgs e)
 {
     grasshopper = new Grasshopper(task.StartPosition);
     listBoxActions.Items.Clear();
     buttonCancel.Enabled = false;
     pictureBoxMain.Refresh();
 }
コード例 #2
0
 public void UpdateForm(Task _task)
 {
     task                 = _task;
     grasshopper          = new Grasshopper(task.StartPosition);
     buttonLeftJump.Text  = $"Прыжок влево на {task.SizeLeftJump}";
     buttonRightJump.Text = $"Прыжок вправо на {task.SizeRightJump}";
     listBoxActions.Items.Clear();
     buttonCancel.Enabled = false;
     pictureBoxMain.Refresh();
 }