private void btVhod_Click(object sender, EventArgs e)
        {
            Registry_Class registry = new Registry_Class();

            //registry.Registry_Set("31.31.198.31", "u0695785_TatarBase", "u0695785_TatarBase", "TatarBase123IIL");
            Authoriz(tbLogin.Text, tbPass.Text);
            if (Role_ID != 0)
            {
                switch (Role_ID)
                {
                case 6:

                    DynamicObjects classDynamicObjects = new DynamicObjects();
                    classDynamicObjects.MainFormFill(false, true, false, false, false, false);
                    break;
                }
                MainForm mainFrm = new MainForm();
                this.Hide();
                mainFrm.Show();
            }
        }
        private void btReg_Click(object sender, EventArgs e)
        {
            if (tbLogin.Text.Length >= 4 & tbPass.Text.Length >= 4)
            {
                if (tbPass.Text == tbRepeatPass.Text)
                {
                    Registry_Class registry = new Registry_Class();
                    registry.Registry_Get();
                    DBProcedures procedure = new DBProcedures();
                    procedure.spAccount_Insert(tbLogin.Text, Hash(tbPass.Text), 1);

                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Пароли не совпадают!");
                }
            }
            else
            {
                MessageBox.Show("Длина логина и пароля должна быть больше трех символов");
            }
        }
        private void AuthorizForm_Load(object sender, EventArgs e)
        {
            Registry_Class regCl = new Registry_Class();

            regCl.Registry_Get();
        }