示例#1
0
        public MainWindow()
        {
            StudentData.addTestStudents();

            if (user == null)
            {
                Login Log1 = new Login();
                this.Close();
                Log1.Show();
            }
            else
            {
                addFaculties();
                addDegree();
                FillStudStatusChoices();
                InitializeComponent();
                currentUser.Content = "Current user: "******"  as:  " + user.role.ToString();
            }
        }
示例#2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var loginWindow = new Login();

            loginWindow.Show();
        }