コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            _PB = new Podkl_Bazi();
            _PB.Register_set(comboBox1.Text, comboBox2.Text, textBox1.Text, textBox2.Text);
            this.Hide();
            Autorization Form = new Autorization();

            Form.Show();
        }
コード例 #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            this.Close();
            Program.ProgAccess        = 0;
            Program.identificator     = 0;
            Program.AdminAccess       = 0;
            Program.Systemaccess      = 0;
            Program.IngridientsAccess = 0;
            Program.EdaAccess         = 0;
            Program.SotrudnikiAccess  = 0;
            Program.KlientsAccess     = 0;
            Program.RekvizitAccess    = 0;
            Program.ZakazVZale        = 0;
            Program.ZakazNaDost       = 0;
            Autorization Form = new Autorization();

            Form.Show();
        }
コード例 #3
0
        public void _PB_Status(bool value)
        {
            Action Act = () =>
            {
                proverka_serverov = false;
                switch (value)
                {
                case (true):
                    poluchit_spis_serverov     = false;
                    toolStripStatusLabel3.Text = "Подключение установлено!";
                    Autorization Form = new Autorization();
                    this.Hide();
                    Form.Show();
                    break;

                case (false):
                    toolStripStatusLabel3.Text = "Отсутствует подключение!";
                    label1.Visible             = true;
                    label2.Visible             = true;
                    label3.Visible             = true;
                    label4.Visible             = true;
                    comboBox1.Visible          = true;
                    comboBox2.Visible          = true;
                    textBox1.Visible           = true;
                    textBox2.Visible           = true;
                    button1.Visible            = true;
                    button2.Visible            = true;
                    _PB              = new Podkl_Bazi();
                    _PB.List_Server += _PB_List_Server;
                    Thread Th1 = new Thread(_PB.poluchit_spis_serverov);
                    Th1.Start();
                    break;
                }
            };

            Invoke(Act);
        }//Получение данных и проверка подключения к серверу