private void EnterApp() { if (this.Role != null && !String.IsNullOrEmpty(this.Role.ShortDesc)) { CurrentUserParam currentUserParam = new CurrentUserParam(this.userName, this.Role.Id, this.Role.ShortDesc); ModularBootstrapper bootstrapper = new ModularBootstrapper(currentUserParam); bootstrapper.Run(); } }
private void OnStartApp(object sender, StartupEventArgs e) { string val = ConfigurationManager.AppSettings["ForceAuthentication"]; if (val.Equals("true")) { Application.Current.MainWindow = new LoginBox(); Application.Current.MainWindow.DataContext = new FrameContext(); Application.Current.MainWindow.Show(); } else { Application.Current.MainWindow = new Window(); ModularBootstrapper bootstrapper = new ModularBootstrapper(new CurrentUserParam("Guest", 1, "admin")); bootstrapper.Run(); } }