//constructor public EventHandlerClass(EventViewModel evm) { _getEvents = new PersistancyService(); _frameNAvigation = new FrameNAvigationClass(); _catalog = EventCatalogSingleton.GetInstance(); Evm = evm; }
public EventViewModel() { EventCatalogSingleton = EventCatalogSingleton.GetInstance(); Events = EventCatalogSingleton.GetCollection(); EventHandler = new EventHandlerClass(this); _selectedEvent = new Event(); AddCommand = new RelayCommand(EventHandler.CreateEvent); DeleteCommand = new RelayCommand(EventHandler.DeleteEvent); SearchCommand = new RelayCommand(DoSearch); BackCommand = new RelayCommand(DoBackToLogin); GoToCreatePageCommand = new RelayCommand(NavigateToCreateEventPage); _frameNavigation = new FrameNavigationClass(); }
public EventPage() { this.InitializeComponent(); ApplicationViewTitleBar formattableTitleBar = ApplicationView.GetForCurrentView().TitleBar; formattableTitleBar.ButtonBackgroundColor = Colors.Transparent; CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar; coreTitleBar.ExtendViewIntoTitleBar = true; evm = new EventViewModel(); _userSingleton = EventCatalogSingleton.GetInstance(); }