public IncomeCategories()
 {
     using (var context = new BookKeepingContext())
     {
         context.IncomeDBSet.Load();
         var s = context.IncomeDBSet.Select(income => income.IncomeCategory).Distinct().ToList <string>();
         Categories = new ObservableCollection <string>(s);
     }
 }
 public void UpdateCategoryList()
 {
     Categories.Clear();
     using (var context = new BookKeepingContext())
     {
         context.IncomeDBSet.Load();
         var s = context.IncomeDBSet.Select(income => income.IncomeCategory).Distinct().ToList <string>();
         foreach (var item in s)
         {
             Categories.Add(item);
         }
     }
 }