private void barBtnSave_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (chkCheckValidAll.CheckState == CheckState.Unchecked)
     {
         var strMessageChangePass = string.Format(SEDConst.CHANGEPASS_MESSAGE_CHECK_VALID, chkCheckValidAll.Text);
         SEDFuncCall.MessageWarning(strMessageChangePass, SEDConst.TITLE_WARNING);
     }
     try
     {
         using (var permissionContext = new PermissionDataContext())
         {
             var accountNew = new Account
             {
                 FullName = txtFullName.Text,
                 Address = txtAddress.Text,
                 Phone = txtPhone.Text,
                 UserName = txtUserName.Text,
                 Password = new SEDDataEncrypt().EncodeOneWay(txtPassword.Text),
                 Email = txtEmail.Text,
                 Permission = (chkSetPermission.Checked ? 1 : 0),
                 Status = (chkSetStatus.Checked ? 1 : 0)
             };
             permissionContext.Accounts.InsertOnSubmit(accountNew);
             permissionContext.SubmitChanges();
             SEDFuncCall.MessageSuccess(SEDConst.ACCOUNTCRUD_MESSAGE_CREATE_SUCCSESS
                 , SEDConst.TITLE_NOTE);
         }
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, SEDConst.TITLE_WARNING, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 partial void DeleteAccount(Account instance);
 partial void UpdateAccount(Account instance);
 partial void InsertAccount(Account instance);
        /// <summary>
        ///     Create By: ManhNV1 -Date: 02/22/2016
        ///     Description: Progress Login Success
        /// </summary>
        /// <param name="account">Account account login</param>
        private void ProgressLoginSuccess(Account account)
        {
            if (chkRememberLogin.Checked)
            {
                //Save Information UserLogin and Password
                ProcessMeAccount(txtUserName.Text, txtPassword.Text);
            }
            XtraMessageBox.Show(string.Format(SEDConst.AUTHENTICATION_MESSAGE_LOGINSUCCESS, account.FullName)
                , SEDConst.TITLE_NOTE
                , MessageBoxButtons.OK, MessageBoxIcon.Information);

            // Send User Information
            Id = (int)account.Id;
            A00FrmMain.FrmMainDynamic.CheckLoginPermission((int)account.Permission);
            Hide();
        }