private void sbAddNew_Click(object sender, EventArgs e) { var frm = new KindOfLabelForm(); frm.oid = ""; if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { refreshGrid(); } else { refreshGrid(); } }
private void gridView2_DoubleClick(object sender, EventArgs e) { var row = gv.GetFocusedDataRow(); if (row == null) { return; } var frm = new KindOfLabelForm(); frm.oid = row["Code"].ToString(); if (frm.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { refreshGrid(); } else { refreshGrid(); } }