private void passForTariffoK_Click(object sender, EventArgs e) { if (textBoxForTariffPass.Text == Properties.Settings.Default.TariffPass) { dobavlenieNorm dobavlenieNorm = new dobavlenieNorm(this); dobavlenieNorm.Show(); textBoxForTariffPass.Text = ""; textBoxForTariffPass.Visible = false; passForTariffoK.Visible = false; labelForTariffPass.Visible = false; zapolnenie_norm.Visible = true; } else { MessageBox.Show("Неверный пароль"); textBoxForTariffPass.Text = ""; textBoxForTariffPass.Visible = false; passForTariffoK.Visible = false; labelForTariffPass.Visible = false; zapolnenie_norm.Visible = true; } }
public FormOkTariff(dobavlenieNorm dobavlenieNorm) { InitializeComponent(); _dobavlenieNorm = dobavlenieNorm; }