Example #1
0
 //RemoveBar - Fjerner barn fra liste og køre gennem Peristency: Delete
 public void RemoveBarn(Barn BRemove)
 {
     BarnsCollection.Remove(BRemove);
     PersistencyService.DeleteBarnAsync(BRemove);
 }
 public async void Save()
 {
     PersistencyService.SaveKundeListeAsJsonAsync(CustomerList.CustomerList);
 }
Example #3
0
        public async void GetAllBookingInfo()
        {
            ObservableCollection <Bookinger> tempBookingCollection = await PersistencyService <Bookinger> .GetObjects("Bookinger");

            AllBookings = tempBookingCollection;

            ObservableCollection <LokaleBookinger> tempLokaleBookingCollection = await PersistencyService <LokaleBookinger> .GetObjects("LokaleBookinger");

            AllLokaleBookings = tempLokaleBookingCollection;

            ObservableCollection <Lokaler> tempRoomCollection = await PersistencyService <Lokaler> .GetObjects("Lokaler");

            AllRooms = tempRoomCollection;

            GetMyBookings();
        }
Example #4
0
        // Serialization Methods

        public void SaveEvents(ObservableCollection <Event> savedAsJsonObservableCollection)
        {
            PersistencyService.SaveEventsAsJsonAsync(savedAsJsonObservableCollection);
        }
Example #5
0
 public async void LoadEvents()
 {
     await PersistencyService.LoadEventsFromJasonAsync();
 }
 public void RemoveEvent(Event deleteEvent)
 {
     Events.Remove(deleteEvent);
     PersistencyService.SaveEventsAsJsonAsync();
 }
        public async void GetLokaler()
        {
            ObservableCollection <Lokaler> tempLCollection = await PersistencyService <Lokaler> .GetObjects("Lokaler");

            LokaleCollection = tempLCollection;
        }
 public EventCatalogSingleton()
 {
     _events            = new ObservableCollection <Event>();
     PersistencyService = new PersistencyService();
     LoadMethod();
 }
	    public void UpdateSupplier(Supplier s)
	    {
		    PersistencyService.UpdateSupplier(s);
	    }
 public void AddEvent(Event e)
 {
     this.Events.Add(e);
     PersistencyService.SaveEventsAsJsonAsync(Events);
 }