Пример #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);
        }
Пример #2
0
        public void ViewRentalsByMember(IShowRentalHistoryView inForm, int inMemberId, IMemberRepository memberRepository, MainFormController mainController)
        {
            var member = memberRepository.GetMemberById(inMemberId);

            inForm.ShowModaless(mainController, member);
        }
Пример #3
0
 public void ViewActiveRentals(IShowActiveRentalListView inForm, MainFormController mainController)
 {
     inForm.ShowModaless(mainController);
 }