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(); } }
private void тарифToolStripMenuItem_Click(object sender, EventArgs e) { newTariff f = new newTariff(); f.ShowDialog(); }