예제 #1
0
        private void button6_Click(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();
            }
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool success = double.TryParse(comboboxMovedwithoutwall.Text, out double result);

            if (!success)
            {
                comboboxMovedwithoutwall.Text = "Invalid.";
            }
            else
            {
                MoveResult.list[MoveResult.move_successful()] = result;
                FormsHandler.DisplayInitialSettings();
            }
        }
예제 #3
0
        private void button4_Click(object sender, EventArgs e)
        {
            bool success = double.TryParse(comboboxWallpunishment.Text, out double result);

            if (!success)
            {
                comboboxWallpunishment.Text = "Invalid.";
            }
            else
            {
                MoveResult.list[MoveResult.MoveFailed] = result;
                FormsHandler.DisplayInitialSettings();
            }
        }
예제 #4
0
        private void button2_Click(object sender, EventArgs e)
        {
            bool success = double.TryParse(comboboxE.Text, out double result);

            if (!success)
            {
                comboboxE.Text = "Invalid.";
            }
            else
            {
                FormsHandler.loaded_state.live_qmatrix.e_current = result;
                FormsHandler.DisplayInitialSettings();
            }
        }
예제 #5
0
        private void set_y_from_dropdown(object sender, EventArgs e)
        {
            bool success = double.TryParse(comboboxY.Text, out double result);

            if (!success)
            {
                comboboxY.Text = "Invalid.";
            }
            else
            {
                FormsHandler.loaded_state.live_qmatrix.y_current = result;
                FormsHandler.DisplayInitialSettings();
            }
        }
예제 #6
0
        private void set_steps_from_dropdown(object sender, EventArgs e)
        {
            bool success = Int32.TryParse(comboboxSteps.Text, out int result);

            if (!success)
            {
                comboboxSteps.Text = "Invalid.";
            }
            else
            {
                Qmatrix.step_limit = result;
                FormsHandler.DisplayInitialSettings();
            }
        }