Example #1
0
 private void MainPage_Loaded(object sender, RoutedEventArgs e)
 {
     Visibility = Visibility.Collapsed;
     _child     = new LoginChildWindow(this);
     _child.Show();
     _child.Closed += child_Closed;
 }
Example #2
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" }
     };
 }