예제 #1
0
        private void PeopleBotton_Click(object sender, EventArgs e)
        {
            this.Hide();
            PeopleForm people = new PeopleForm();

            people.ShowDialog();
            this.Close();
        }
        private void DeleatBotten_Click(object sender, EventArgs e)
        {
            dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Selected = true;
            DBProcs.deleteTheRow(dataGridView1);

            this.Hide();
            PeopleForm peopleForm = new PeopleForm();

            peopleForm.ShowDialog();
            this.Close();
        }
        private void InsertUpdate_Click(object sender, EventArgs e)
        {
            dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Selected = true;
            RowData rd = new RowData(dataGridView1);

            DBProcs.updateRow(rd);

            this.Hide();
            PeopleForm peopleForm = new PeopleForm();

            peopleForm.ShowDialog();
            this.Close();
        }