Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
     }
 }