private bool ValidateAuthen()
        {
            string userName = txtUserName.Text.Trim();
            string password = txtPassword.Text.Trim();

            if (string.IsNullOrEmpty(userName) || string.IsNullOrEmpty(password))
            {
                lblMessage.Text = "Fail !!!";
                return(false);
            }

            string pass = new BACryptor.Encryption("binhanh.vn").Encrypt(password);

            if (Company_User.Inst.ValidAuthen_Server(userName, pass))
            {
                ribbon.Enabled         = true;
                panelMain.Visible      = false;
                barAccountInfo.Caption = string.Format("-{0}", userName);
                ShowFormMain();
                LoadAllData();
                return(true);
            }
            return(false);
        }
        /// <summary>
        /// Chứng thực tài khoản có khớp với server không
        /// </summary>
        private bool ValidateAuthen(string userName, string password)
        {
            string pass = new BACryptor.Encryption("binhanh.vn").Encrypt(password);

            return(Company_User.Inst.ValidAuthen(userName, pass));
        }