//Center pads.
 private void centeredPad_rb_CheckedChanged(object sender, EventArgs e)
 {
     if (centeredPad_rb.Checked == true)
     {
         ELM_GUI.enableTB(centeredPadX_tb);
     }
 }
 //Corner pads.
 private void customCornerPad_rb_CheckedChanged(object sender, EventArgs e)
 {
     if (customCornerPad_rb.Checked == true)
     {
         ELM_GUI.enableTB(ccp_dim_tb);
         ELM_GUI.enableTB(ccp_ref_tb);
     }
 }
示例#3
0
        public void setAllTextBoxesForOneRow()
        {
            ELM_GUI.enableTB(Npads_tb);
            ELM_GUI.enableTB(padX_tb);
            ELM_GUI.enableTB(padY_tb);
            ELM_GUI.enableTB(padSpace_tb);

            ELM_GUI.disableTB(offsetX_tb);
            ELM_GUI.disableTB(offsetY_tb);

            Npads_tb.Text    = "";
            padX_tb.Text     = "";
            padY_tb.Text     = "";
            padSpace_tb.Text = "";
        }
示例#4
0
        public void setAllTextBoxesForTwoRow()
        {
            ELM_GUI.enableTB(Npads_tb);
            ELM_GUI.enableTB(padX_tb);
            ELM_GUI.enableTB(padY_tb);
            ELM_GUI.enableTB(padSpace_tb);

            ELM_GUI.enableTB(offsetX_tb);
            ELM_GUI.enableTB(offsetY_tb);

            setIntTextBox(Npads_tb, (int)N_rows_nud.Value);
            setDoubleTextBox(padX_tb, (int)N_rows_nud.Value);
            setDoubleTextBox(padY_tb, (int)N_rows_nud.Value);
            setDoubleTextBox(padSpace_tb, (int)N_rows_nud.Value);

            offsetX_tb.Text = "";
            offsetY_tb.Text = "";
        }