public static bool ShowInputAmount2(string caption, string lbltext, out string input, out int type) { frmInputText inputtext = new frmInputText(); inputtext.Text = caption; inputtext.lblTitle.Text = lbltext; inputtext.ShowDialog(); input = inputtext.inputNo; int stype = 0; if (inputtext.rbtDiscount.Checked) { stype = 1; } type = stype; bool re = inputtext.DialogResult == DialogResult.OK; try { inputtext.Close(); } catch { } try { inputtext = null; } catch { } return(re); }
public static bool ShowInputAmount(string caption, string lbltext, out string input) { frmInputText inputtext = new frmInputText(); inputtext.Text = caption; inputtext.lblTitle.Text = lbltext; inputtext.ShowDialog(); input = inputtext.inputNo; inputtext.rbtDiscount.Visible = false; bool re = inputtext.DialogResult == DialogResult.OK; try { inputtext.Close(); } catch { } try { inputtext = null; } catch { } return(re); }