private void ButtonReset_Click(object sender, EventArgs e) { grasshopper = new Grasshopper(task.StartPosition); listBoxActions.Items.Clear(); buttonCancel.Enabled = false; pictureBoxMain.Refresh(); }
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(); }