Beispiel #1
0
        private void any_tb_TextChanged(object sender, EventArgs e)
        {
            if (TB_MASTER_CONTROL == false)
            {
                if (N_rows_nud.Value == 1)
                {
                    //Clean values.
                    ELM_GUI.cleanIntInput(Npads_tb);
                    ELM_GUI.cleanDoubleInput(padX_tb);
                    ELM_GUI.cleanDoubleInput(padY_tb);
                    ELM_GUI.cleanDoubleInput(padSpace_tb);

                    ELM_GUI.disableTB(offsetX_tb);
                    ELM_GUI.disableTB(offsetY_tb);
                }
                if (N_rows_nud.Value == 2)
                {
                    //ELM_GUI.enableTB(offsetX_tb);
                    //ELM_GUI.enableTB(offsetY_tb);

                    ELM_GUI.cleanDoubleInput(offsetX_tb);
                    ELM_GUI.cleanDoubleInput(offsetY_tb);
                    //setAllTextBoxesForTwoRow();
                }
                //else
                //{
                //    setAllTextBoxesForInput();
                //}
            }
        }