public void UpdateIncome(object parameter)
        {
            Window window = new View.EditIncome();

            window.DataContext = new EditIncomesViewModel(db, SelectedIncome, Id);
            window.Title       = "Изменить";
            window.ShowDialog();
        }
        public void AddIncome(object parameter)
        {
            Window window = new View.EditIncome();

            window.DataContext = new EditIncomesViewModel(db, null, Id);
            window.Title       = "Добавление";
            window.ShowDialog();
            IncomeSource = new ObservableCollection <Income>(db.Income.Where(i => i.User.Id == Id).ToList());
        }