Example #1
0
        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;
            }
        }
Example #2
0
 public FormOkTariff(dobavlenieNorm dobavlenieNorm)
 {
     InitializeComponent();
     _dobavlenieNorm = dobavlenieNorm;
 }
Example #3
0
        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;
            }
        }