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; }
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; }
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; } }
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; } }