void HandleMasterNavigation(MasterNavigationMessage masterNavigation) { switch (masterNavigation.NavigationType) { case MasterNaviationType.ContactList: OpenContactList.Execute(null); break; case MasterNaviationType.QuoteList: OpenQuoteList.Execute(null); break; case MasterNaviationType.Logout: LogoutCommand.Execute(null); break; case MasterNaviationType.Quote: QuoteCommand.Execute(masterNavigation.NavigationData); break; case MasterNaviationType.ContactUs: ContactUsCommand.Execute(null); break; } }
public DashboardVM() { CurrentModel = new DashboardModel(); ChildUserControl = new selectOptionUserControl(this, currentUser); AboutUs = new AboutUsCommand(this); ContactUs = new ContactUsCommand(this); Home = new HomeCommand(this); Account = new AccountCommand(this); ShutDown = new ShutDownCommand(this); }