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

            f.ShowDialog();
            if (ok)
            {
                cmd.CommandText = "insert into `Тариф` (`Тариф`, `Баланс`) values ('" +
                                  f.tb_tariff.Text + "', " + f.nud_balance.Value.ToString().Replace(',', '.') + ")";
                Open();
                cmd.ExecuteNonQuery();
                c.Close();
                UpdateDgv();
            }
        }
Example #2
0
File: Main.cs Project: N1q/CHERNIY
        private void тарифToolStripMenuItem_Click(object sender, EventArgs e)
        {
            newTariff f = new newTariff();

            f.ShowDialog();
        }