//Delete button private void Button5_Click(object sender, EventArgs e) { Form ifrm2 = new FindForm(); ifrm2.ShowDialog(); if (MainInformation.Add_ID != "") { ComplexSQL(@"DELETE FROM CLIENTS WHERE ID = " + MainInformation.Add_ID + ";", "Запись удалена", false); MainInformation.ResetValues(); } }
// select button private void Button4_Click(object sender, EventArgs e) { Form ifrm2 = new FindForm(); label_IDvalue.Text = "-"; label_NAMEvalue.Text = "-"; label_PHONEvalue.Text = "-"; label_BONUS.Text = "%"; ifrm2.ShowDialog(); if (MainInformation.Add_ID != "") { ComplexSQL("", "", true); } MainInformation.ResetValues(); }