Example #1
0
File: Main.cs Project: evilOnes/DR
        private void btn_newAbonent_Click(object sender, EventArgs e)
        {
            newAbonent f = new newAbonent();

            f.ShowDialog();
            if (ok)
            {
                cmd.CommandText = "insert into `Личные данные` (`ФИО абонента`, `Дата рождения`, `Домашний адрес`) values ('" +
                                  f.tb_name.Text + "', '" +
                                  f.date.Value + "', '" +
                                  f.tb_address.Text + "')";

                Open();
                cmd.ExecuteNonQuery();
                c.Close();
                UpdateDgv();
            }
        }
Example #2
0
File: Main.cs Project: N1q/CHERNIY
        private void абонентаToolStripMenuItem_Click(object sender, EventArgs e)
        {
            newAbonent f = new newAbonent();

            f.ShowDialog();
        }