예제 #1
0
        private void Sotrudniki_FormClosing(object sender, FormClosingEventArgs e)
        {
            GlavMenu glav = new GlavMenu();

            glav.Show();
            Hide();
        }
예제 #2
0
 public void button2_Click(object sender, EventArgs e)
 {
     // Perem perem = new Perem();
     Program.Log = textBox1.Text;
     auth.FunAuth(textBox1.Text, textBox2.Text);
     if (Program.acc == 1 && Program.System_Access == 1)
     {
         GlavMenu glav = new GlavMenu();
         glav.Show();
         glav.tsslCon.Text = Registry_Class.DS + " - " + Registry_Class.IC;
     }
     else
     {
         if (Program.acc == 1 && Program.System_Access == 0)
         {
             MessageBox.Show("Ваш профиль заблокирован!!!");
         }
     }
     Visible = false;
 }
예제 #3
0
        private void constate(bool value)
        {
            GlavMenu glav   = new GlavMenu();
            Action   action = () =>
            {
                switch (value)
                {
                case (true):
                    tsslCon.Visible = true;
                    tsslCon.Text    = Registry_Class.DS + " - " + Registry_Class.IC;
                    break;

                case (false):
                    ConectionForm conection = new ConectionForm();
                    tsslCon.Visible = true;
                    tsslCon.Text    = "Подключение отсутвует!";
                    conection.Show(this);
                    break;
                }
            };

            Invoke(action);
        }