Пример #1
0
        private void btnAddHolder_Click(object sender, EventArgs e)
        {
            DialogBojPerson p = new DialogBojPerson(this.main_form);

            if (p.ShowDialog() == DialogResult.OK)
            {
                this.LoadPersonToDatagrid();
            }
        }
Пример #2
0
        private void btnEditHolder_Click(object sender, EventArgs e)
        {
            if (this.dgvPerson.CurrentCell == null)
            {
                return;
            }

            var             person = (boj5_person)this.dgvPerson.Rows[this.dgvPerson.CurrentCell.RowIndex].Cells[this.col_boj5_person.Name].Value;
            DialogBojPerson p      = new DialogBojPerson(this.main_form, person);

            if (p.ShowDialog() == DialogResult.OK)
            {
                this.LoadPersonToDatagrid();
            }
        }