Exemplo n.º 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);
 }
Exemplo n.º 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();
        }
Exemplo n.º 4
0
        // Serialization Methods

        public void SaveEvents(ObservableCollection <Event> savedAsJsonObservableCollection)
        {
            PersistencyService.SaveEventsAsJsonAsync(savedAsJsonObservableCollection);
        }
Exemplo n.º 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();
 }
Exemplo n.º 9
0
	    public void UpdateSupplier(Supplier s)
	    {
		    PersistencyService.UpdateSupplier(s);
	    }
Exemplo n.º 10
0
 public void AddEvent(Event e)
 {
     this.Events.Add(e);
     PersistencyService.SaveEventsAsJsonAsync(Events);
 }