Example #1
0
 private void Main2_Load(object sender, EventArgs e)
 {
     ribbon1.RightToLeft    = FlowDirectionManager.GetFlowDirection();
     this.RightToLeft       = ribbon1.RightToLeft;
     this.RightToLeftLayout = true;
     if (SharedVariables.is_user_logged)
     {
         LoggedUsrTxtLbl.Text = SharedVariables.user_logged_name + ": " + SharedVariables.user_logged_name_name;
         LogoutBtn.Visible    = true;
     }
 }
Example #2
0
        private void TranslateUI()
        {
            try
            {
                this.Text = FormsNames.LoginFormName;
                // this.RightToLeft = FlowDirectionManager.GetFlowDirection();
                RegisteredLbl.RightToLeft = TrialLbl.RightToLeft = FlowDirectionManager.GetFlowDirection();

                LoginBtn.Text = UiText.LoginLoginBtn;
            }
            catch (Exception ex)
            {
                MessageBox.Show(MsgTxt.UnexpectedError + "\n IN [TranslateUI] \n Exception: \n" + ex.ToString() + "\n" + MsgTxt.FormWillCloseNowTxt, MsgTxt.ErrorCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Close();
            }
        }