public void ChangeContinent() { if (CurrentContinent != null) { ContinentDataService continentDS = new ContinentDataService(); continentDS.UpdateContinent(CurrentContinent); //Refresh ReadContinents(); } }
public void AddContinent() { ContinentDataService continentDS = new ContinentDataService(); if (continentDS.FindDoubleContinent(CurrentContinent)) { continentDS.InsertContinent(CurrentContinent); ReadContinents(); } else { ApplicationViewModel.applicationViewModel.OpenWarningModal(); } }
private void ReadContinents() { ContinentDataService continentDS = new ContinentDataService(); Continents = new ObservableCollection <Continent>(continentDS.GetContinenten()); }