private void newToolStripMenuItem_Click(object sender, EventArgs e) { DataGridViewRow dr = null; FormOpenExistingWorkFlow opnwrkflw = new FormOpenExistingWorkFlow(); if (opnwrkflw.ShowDialog() == DialogResult.OK) { dr = opnwrkflw.dataGridView.SelectedRows[0]; } if (dr != null) { fileindex = int.Parse(dr.Cells[0].Value.ToString()); versionindex = int.Parse(dr.Cells[6].Value.ToString()); filename = dr.Cells[1].Value.ToString(); pulltreedatafromdb(fileindex, versionindex); resetcurrentformafteropen(); string claim = string.Empty; while (claim == string.Empty) { FormInputDialogBox frm = new FormInputDialogBox(FormInputDialogBox.FormDisplayStyle.enOneLineInput, "Please Input Claim Number :", ""); claim = txtClaimNo.Text = frm.ShowDialog() == DialogResult.OK ? frm.textBox.Text : ""; } starttimerframe(true); } }
private void dgvMain_DoubleClick(object sender, EventArgs e) { DataGridView dgvMain = (DataGridView)sender; FormInputDialogBox frm = new FormInputDialogBox(FormInputDialogBox.FormDisplayStyle.enMultiLineInput, "Value :", dgvMain.Rows[dgvMain.CurrentRow.Index].Cells[1].Value.ToString()); frm.ShowDialog(); }
private string getInputfromForm(FormInputDialogBox.FormDisplayStyle type, string caption, string text) { FormInputDialogBox frm = new FormInputDialogBox(type, caption, text); return(frm.ShowDialog() == DialogResult.OK ? frm.textBox.Text : ""); }