Esempio n. 1
0
 /// <summary>
 /// Extracts the Catagories from the collection
 /// </summary>
 private void GetCatagories()
 {
     Catagories.Clear();
     //adds the data to the collection
     Catagories.Add("Housing");
     Catagories.Add("Debt");
     Catagories.Add("Health");
     Catagories.Add("Food");
     Catagories.Add("Personal");
     Catagories.Add("Travel");
     Catagories.Add("Work Related");
     Catagories.Add("Other");
 }
        private void LoadData()
        {
            Catagories.Clear();
            IList <Catagory> catList = this.administrationService.GetCatagories();

            foreach (Catagory cat in catList)
            {
                Catagories.Add(new CatagoryVM(cat, administrationService));
            }
            CurrentCatagory = Catagories.First();
            RaisePropertyChangedEvent(nameof(Catagories));
            RaisePropertyChangedEvent(nameof(CurrentCatagory));
        }