private void btnUpdate_Click(object sender, EventArgs e) { Frm.fmNumberEdit fm = new fmNumberEdit(dataGridView1.CurrentRow.Cells[0].Value.ToTryInt()); fm.ShowInTaskbar = false; fm.StartPosition = FormStartPosition.CenterParent; if (fm.ShowDialog() == DialogResult.OK) { BindDataSource(); } }
private void btnAdd_Click(object sender, EventArgs e) { Frm.fmNumberEdit fm = new fmNumberEdit(); fm.ShowInTaskbar = false; fm.StartPosition = FormStartPosition.CenterParent; if (fm.ShowDialog() == DialogResult.OK) { BindDataSource(); } }