コード例 #1
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Вы уверены что хотите удалить данного судью?", "Сообщение", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         WorkWithBD.DeleteJudge(dataGridView1.CurrentRow.Cells[0].Value.ToString());
         dataGridView1.Rows.Clear();
         WorkWithBD.ReadJudgeForDataGridView(dataGridView1);
     }
 }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            FormAddJudge form = new FormAddJudge();

            form.ShowDialog();
            dataGridView1.Rows.Clear();
            WorkWithBD.ReadJudgeForDataGridView(dataGridView1);
            this.Visible = true;
        }
コード例 #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            FormEditJudge form = new FormEditJudge(dataGridView1.CurrentRow.Cells[0].Value.ToString(), dataGridView1.CurrentRow.Cells[1].Value.ToString(), dataGridView1.CurrentRow.Cells[2].Value.ToString(),
                                                   dataGridView1.CurrentRow.Cells[3].Value.ToString(), dataGridView1.CurrentRow.Cells[4].Value.ToString(), dataGridView1.CurrentRow.Cells[5].Value.ToString());

            form.ShowDialog();
            dataGridView1.Rows.Clear();
            WorkWithBD.ReadJudgeForDataGridView(dataGridView1);
            this.Visible = true;
        }
コード例 #4
0
 private void FormWithJudge_Load(object sender, EventArgs e)
 {
     dataGridView1.Rows.Clear();
     WorkWithBD.ReadJudgeForDataGridView(dataGridView1);
 }