Esempio n. 1
0
        public User CheckLogin(IShowMainWindowView inForm, string username, string password, IUserRepository userRepository, MainFormController mainController)
        {
            var user = userRepository.DoesUserExists(username, password);

            if (user != null)
            {
                GlobalVariables.CurrentUser = user;
                inForm.ShowModaless(mainController);
            }
            return(user);
        }
Esempio n. 2
0
        public void ViewRentalsByMember(IShowRentalHistoryView inForm, int inMemberId, IMemberRepository memberRepository, MainFormController mainController)
        {
            var member = memberRepository.GetMemberById(inMemberId);

            inForm.ShowModaless(mainController, member);
        }
Esempio n. 3
0
 public void ViewActiveRentals(IShowActiveRentalListView inForm, MainFormController mainController)
 {
     inForm.ShowModaless(mainController);
 }