예제 #1
0
        public ScreenBaseViewModel(LibraryScreens screenType, ProtoBridge bridge,
            StaffAccountBLL currUser)
        {
            ScreenType = screenType;
            _Bridge = bridge;
            _CurrentUser = currUser;

            if (_CurrentUser != null)
                IsLoggedIn = true;
            else
                IsLoggedIn = false;
        }
예제 #2
0
 public TransitionPath(LibraryScreens from, LibraryScreens to)
 {
     From = from;
     To = to;
 }
예제 #3
0
 //Since events defined in a base class can't be fired from a derived class,
 //this protected method is used to indirectly fire ScreenTransition
 protected void FireScreenTransitionEvent(LibraryScreens to)
 {
     if (ScreenTransition != null)
         ScreenTransition(new TransitionPath(ScreenType, to), _CurrentUser);
 }