Exemple #1
0
        private void dataGridDB_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int index = e.RowIndex;
            int id    = Int32.Parse(dataGridDB.Rows[index].Cells[0].Value.ToString());

            foreach (Person p in tableModel.ReturnPersons())
            {
                if (id == p.Id)
                {
                    FormSingle fSingle = new FormSingle(tableModel, p);
                    fSingle.Show();
                }
            }
        }
Exemple #2
0
        private void btncreate_Click(object sender, EventArgs e)
        {
            FormSingle fSingle = new FormSingle(tableModel, new Person(0, "", "", 0));

            fSingle.Show();
        }