Пример #1
0
 public PageIndexBoxForm(ShowPageIndexBox showBox, int threshold, PageIndexBoxType boxType, string txtBefore, string txtAfter, string btnText)
 {
     InitializeComponent();
     showIndexBox     = showBox;
     this.threshold   = threshold;
     this.boxType     = boxType;
     textBeforeBox    = txtBefore;
     textAfterBox     = txtAfter;
     submitButtonText = btnText;
 }
Пример #2
0
 public PageIndexBoxForm(ShowPageIndexBox showBox,int threshold,PageIndexBoxType boxType,string txtBefore,string txtAfter,string btnText)
 {
     InitializeComponent();
     showIndexBox = showBox;
     this.threshold = threshold;
     this.boxType = boxType;
     textBeforeBox = txtBefore;
     textAfterBox = txtAfter;
     submitButtonText = btnText;
 }
Пример #3
0
 private void btn_ok_Click(object sender, EventArgs e)
 {
     if (rb_never.Checked)
         showIndexBox = ShowPageIndexBox.Never;
     else if (rb_always.Checked)
     {
         showIndexBox = ShowPageIndexBox.Always;
         boxType = (PageIndexBoxType)cmb_boxtype.SelectedIndex;
         textAfterBox = tb_textaft.Text;
         textBeforeBox = tb_textbf.Text;
         submitButtonText = tb_btntxt.Text;
     }
     else
     {
         showIndexBox = ShowPageIndexBox.Auto;
         threshold = (int)num_threshold.Value;
         boxType = (PageIndexBoxType)cmb_boxtype.SelectedIndex;
         textAfterBox = tb_textaft.Text;
         textBeforeBox = tb_textbf.Text;
         submitButtonText = tb_btntxt.Text;
     }
 }
Пример #4
0
 private void btn_ok_Click(object sender, EventArgs e)
 {
     if (rb_never.Checked)
     {
         showIndexBox = ShowPageIndexBox.Never;
     }
     else if (rb_always.Checked)
     {
         showIndexBox     = ShowPageIndexBox.Always;
         boxType          = (PageIndexBoxType)cmb_boxtype.SelectedIndex;
         textAfterBox     = tb_textaft.Text;
         textBeforeBox    = tb_textbf.Text;
         submitButtonText = tb_btntxt.Text;
     }
     else
     {
         showIndexBox     = ShowPageIndexBox.Auto;
         threshold        = (int)num_threshold.Value;
         boxType          = (PageIndexBoxType)cmb_boxtype.SelectedIndex;
         textAfterBox     = tb_textaft.Text;
         textBeforeBox    = tb_textbf.Text;
         submitButtonText = tb_btntxt.Text;
     }
 }