//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); }
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(); }
// Serialization Methods public void SaveEvents(ObservableCollection <Event> savedAsJsonObservableCollection) { PersistencyService.SaveEventsAsJsonAsync(savedAsJsonObservableCollection); }
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); }