public ScreenBaseViewModel(LibraryScreens screenType, ProtoBridge bridge, StaffAccountBLL currUser) { ScreenType = screenType; _Bridge = bridge; _CurrentUser = currUser; if (_CurrentUser != null) IsLoggedIn = true; else IsLoggedIn = false; }
public TransitionPath(LibraryScreens from, LibraryScreens to) { From = from; To = to; }
//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); }