示例#1
0
        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();
            }
        }
示例#2
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     RootVisual = new TaskManagementView();
 }