public Form_Authorization()
        {
            InitializeComponent();

            _Form_Admin = new Form_Admin( this );
            _Authorization = new CAuthorization();
            _Form_Restore_Password = new Form_Restore_Password( this , _Authorization );
            _Form_Student = new Form_Student( this);
        }
        public void Authorization(string _login , string _password , Form_Authorization _form_authorization , Form_Admin _form_admin , Form_Restore_Password _form_restore_password , Form_Student _form_student)
        {
            try
            {
                if ( !_UserAuth.Authorization( _login , _password ) )
                    throw new System.Exception( "Неверный логин или пароль" );

                //Логин и пароль есть в БД
                _form_authorization.Hide();
                if ( _UserAuth.isAdmin() )
                    _form_admin.Show();
                else
                {
                    var _user = _UserAuth.AuthorizedUser;
                    _form_student.Text = String.Format( "Группа: {0} {1} {2}" , _user.Group , _user.FirstName , _user.LastName );
                    _form_student.Show();
                }
            }
            catch ( System.Exception _exception )
            {
                MyMessage.Error( _exception.Message );
            }
        }