public void LoginSuccesfull(object o, UserLoggedInEventArg args)
        {
            loginView.Close();
            string outPut = "Login Sucessfully completed!\nWelcome to VikingNote 1.0 " + args.User.UserName + "\nYou have made " +
                            args.User.Quizs.Count + " quizzes so far";

            MessageBox.Show(outPut);
            mainWindow.Show();
        }
 private void AddAuthTokens(object o, UserLoggedInEventArg args)
 {
     User.SetAuthToken(args.User.AuthToken);
     Answer.SetAuthToken(args.User.AuthToken);
     Question.SetAuthToken(args.User.AuthToken);
     Quiz.SetAuthToken(args.User.AuthToken);
     Study.SetAuthToken(args.User.AuthToken);
     UserType.SetAuthToken(args.User.AuthToken);
     Course.SetAuthToken(args.User.AuthToken);
     Faculty.SetAuthToken(args.User.AuthToken);
     Rating.SetAuthToken(args.User.AuthToken);
     Semester.SetAuthToken(args.User.AuthToken);
     SelectedAnswer.SetAuthToken(args.User.AuthToken);
     QuizUserStatistic.SetAuthToken(args.User.AuthToken);
 }
 void SetUser(object sender, UserLoggedInEventArg args)
 {
     User = args.User;
 }