Exemple #1
0
 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();
 }
Exemple #2
0
 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();
 }
Exemple #3
0
 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();
 }
Exemple #4
0
 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("*", "Дом");
 }