public void AddPerson() { Buffer.State = "add"; FPersonAdd frmPersonAdd = new FPersonAdd(); frmPersonAdd.ShowDialog(); Reload(); }
private void dgPerson_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { Buffer.State = "view"; Buffer.MFPersonBuffer = Convert.ToInt32(dgPerson[0, dgPerson.CurrentRow.Index].Value.ToString()); FPersonAdd frmPersView = new FPersonAdd(); frmPersView.ShowDialog(); Reload(); }