private void btAdd_Click(object sender, EventArgs e) { FormAddAction faa = new FormAddAction(db); faa.ShowDialog(); dgvActions.Rows.Clear(); db.LoadTables("actions", dgvActions); }
private void btAdd_Click(object sender, EventArgs e) { FormAddAction faa = new FormAddAction(); faa.ShowDialog(); dataGridView1.Rows.Clear(); db.LoadTables("actions", dataGridView1); }
private void редактироватьАкциюToolStripMenuItem_Click(object sender, EventArgs e) { string idAction = dgvActions.CurrentRow.Cells[0].Value.ToString(); string name = dgvActions.CurrentRow.Cells[1].Value.ToString(); string text = dgvActions.CurrentRow.Cells[2].Value.ToString(); FormAddAction faa = new FormAddAction(db, idAction, name, text); faa.ShowDialog(); dgvActions.Rows.Clear(); db.LoadTables("actions", dgvActions); }