Exemplo n.º 1
0
 private void _LoginWindow_SubmitAction(MainPage main, LoginMainWindow _loginMain, LoginChildWindow loginChildWindow)
 {
     main.LoggedUserTextBlock.Content    = LoggedUserInfo.WFM_UserName;
     main.LoggedUserTextBlock.Tag        = LoggedUserInfo.Code;
     main.LoggedUserTextBlock.TargetName = LoggedUserInfo.Iserial.ToString(CultureInfo.InvariantCulture);
     if (!LoggedUserInfo.WFM_IsMenuInitiated)
     {
         LoggedUserInfo.InitiatePermissions(main, main.PanelButtons, _loginMain, loginChildWindow);
     }
     DefaultUserSettings.DATAAREAID = new Dictionary <string, string> {
         { "CCM", "CCM" }, { "CCR", "CCR" }
     };
 }
Exemplo n.º 2
0
 private void GettingUser()
 {
     LoggedUserInfo.WfmUserName = Page.User.Identity.Name;
     LoggedUserInfo.InitiatePermissions();
 }