예제 #1
0
        public void ChangeContinent()
        {
            if (CurrentContinent != null)
            {
                ContinentDataService continentDS =
                    new ContinentDataService();
                continentDS.UpdateContinent(CurrentContinent);

                //Refresh
                ReadContinents();
            }
        }
예제 #2
0
        public void AddContinent()
        {
            ContinentDataService continentDS = new ContinentDataService();

            if (continentDS.FindDoubleContinent(CurrentContinent))
            {
                continentDS.InsertContinent(CurrentContinent);
                ReadContinents();
            }
            else
            {
                ApplicationViewModel.applicationViewModel.OpenWarningModal();
            }
        }
예제 #3
0
        private void ReadContinents()
        {
            ContinentDataService continentDS = new ContinentDataService();

            Continents = new ObservableCollection <Continent>(continentDS.GetContinenten());
        }