Example #1
0
 //constructor
 public EventHandlerClass(EventViewModel evm)
 {
     _getEvents       = new PersistancyService();
     _frameNAvigation = new FrameNAvigationClass();
     _catalog         = EventCatalogSingleton.GetInstance();
     Evm = evm;
 }
Example #2
0
 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();
 }
Example #3
0
        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();
        }