private void Login()
        {
            if (logpass.Login(textBox1.Text, textBox2.Text))
            {
                //this.Hide();
                switch (CurrentUser.roles)
                {
                case "clients":
                    Clients.Form1 form1 = new Clients.Form1();
                    form1.Show();
                    break;

                case "consultant":
                    textBox3.Text             = "consultant";
                    consultant.textBox21.Text = textBox3.Text;
                    //Hide();
                    consultant.Show();
                    break;

                case "manager":
                    Employee.Manager manager = new Employee.Manager();
                    textBox3.Text          = "manager";
                    manager.textBox14.Text = textBox3.Text;
                    //Hide();
                    manager.Show();
                    break;

                case "director":
                    textBox3.Text             = "director";
                    consultant.textBox21.Text = textBox3.Text;
                    sale.textBox1.Text        = consultant.textBox21.Text;
                    AdminForm admMenu = new AdminForm();
                    //Hide();
                    admMenu.Show();
                    break;

                default:
                    MessageBox.Show("Ошибка логина!", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }
            else
            {
                MessageBox.Show("Не найден такой пользователь!", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     Clients.Form1 form1 = new Clients.Form1();
     form1.Show();
 }