private void button6Click(object sender, EventArgs e) { bool success = double.TryParse(comboboxEmptysquare.Text, out double result); if (!success) { comboboxEmptysquare.Text = "Invalid."; } else { MoveResult.list[MoveResult.CanMissing] = result; FormsHandler.DisplayInitialSettings(); } }
private void button2Click(object sender, EventArgs e) { bool success = double.TryParse(comboboxE.Text, out double result); if (!success) { comboboxE.Text = "Invalid."; } else { FormsHandler.loadedState.liveQmatrix.e = result; FormsHandler.DisplayInitialSettings(); } }
private void button1Click(object sender, EventArgs e) { bool success = double.TryParse(comboboxMovedwithoutwall.Text, out double result); if (!success) { comboboxMovedwithoutwall.Text = "Invalid."; } else { MoveResult.list[MoveResult.TravelSucceeded] = result; FormsHandler.DisplayInitialSettings(); } }
private void set_stepsFrom_dropdown(object sender, EventArgs e) { bool success = Int32.TryParse(comboboxSteps.Text, out int result); if (!success) { comboboxSteps.Text = "Invalid."; } else { Qmatrix.stepLimit = result; FormsHandler.DisplayInitialSettings(); } }