Пример #1
0
        //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();
            }
        }
Пример #2
0
        // 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();
        }