static void Main(string[] args) { LoginView loginview = new LoginView(); loginview.Show(); if (AuthenticationService.LoggedUser.IsAdmin) { AdminView adminview = new AdminView(); adminview.Show(); } else { TaskManagementView taskView = new TaskManagementView(); taskView.Show(); } }
private void Application_Startup(object sender, StartupEventArgs e) { RootVisual = new TaskManagementView(); }