Example #1
0
        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();
            }
        }
Example #2
0
        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();
            }
        }
Example #3
0
        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();
            }
        }
Example #4
0
        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();
            }
        }