Esempio n. 1
0
File: Main.cs Progetto: 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();
            }
        }
Esempio n. 2
0
File: Main.cs Progetto: N1q/CHERNIY
        private void тарифToolStripMenuItem_Click(object sender, EventArgs e)
        {
            newTariff f = new newTariff();

            f.ShowDialog();
        }