Пример #1
0
        public void AddPerson()
        {
            Buffer.State = "add";
            FPersonAdd frmPersonAdd = new FPersonAdd();

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