Пример #1
0
        private void SearchBtnClick(object sender, EventArgs e)
        {
            string query = "SELECT [ФИО] FROM [телефоны] ";

            using (WhereForm wf = new WhereForm(this, query, ref connection))
            {
                wf.ShowDialog();
                if (wf.DialogResult == DialogResult.OK)
                {
                    wf.Close();
                }
            }
        }
Пример #2
0
        private void DeleteBtnClick(object sender, EventArgs e)
        {
            string query = "DELETE FROM [телефоны] ";

            using (WhereForm wf = new WhereForm(this, query, ref connection))
            {
                wf.ShowDialog();
                if (wf.DialogResult == DialogResult.OK)
                {
                    wf.Close();
                }
            }
            DataGridLoad();
        }