private void btnDel_Click(object sender, EventArgs e) { connection conDel = new connection(); conDel.delete("ГУК", "[Код ГУК]", Convert.ToString(dgvGUK.Rows[dgvGUK.CurrentRow.Index].Cells[0].Value)); dgvGUK.DataSource = connection.FillDGV("*", "ГУК"); conDel.Close(); }
private void btnDelFlat_Click(object sender, EventArgs e) { connection conDel = new connection(); conDel.delete("Квартира", "[Код квартира]", Convert.ToString(dgvFlat.Rows[dgvFlat.CurrentRow.Index].Cells[0].Value)); dgvFlat.DataSource = connection.FillDGV("*", "Квартира"); Update(); }
private void btnDel_Click(object sender, EventArgs e) { connection conDel = new connection(); conDel.delete("Квитанция", "[Код Квитанция]", Convert.ToString(dgvT.Rows[dgvT.CurrentRow.Index].Cells[0].Value)); conDel.Close(); ClearAll(); }
private void btnDelHouse_Click(object sender, EventArgs e) { connection conDel = new connection(); conDel.delete("Дом", "[Код дом]", Convert.ToString(dgvHouse.Rows[dgvHouse.CurrentRow.Index].Cells[0].Value)); dgvHouse.DataSource = connection.FillDGV("*", "Дом"); }