Пример #1
0
        /*Metodes*/
        public void CreateEvent()
        {
            Event nyEvent = new Event(EventViewModel.Id, EventViewModel.Name, EventViewModel.Description, EventViewModel.Place, DateTimeConverter.DateTimeOffsetAndTimeSetToDateTime(EventViewModel._date, EventViewModel._time));

            EventCatalogSingleton.Instance.Events.Add(nyEvent);

            PersistencyService.GemDataTilAsync();
        }
Пример #2
0
 public void DeleteEvent()
 {
     EventCatalogSingleton.Instance.Events.Remove(EventViewModel.SelectedEvent);
     PersistencyService.GemDataTilAsync();
 }