void OnAddExpenseCategory(object sender, Base.Events.QuickAccessEventArgs <Icon, string> e) { _dataContext.Categories.Add(new OperationCategory() { Name = e.Value, Type = OperationType.Expense, IconSource = e.Selected }); }
void OnQuickIncomeAdd(object sender, Base.Events.QuickAccessEventArgs <OperationCategory, double> e) { _dataContext.Operations.Add(new Operation() { Account = SelectedAccount, Date = DateTime.Now, Type = OperationType.Income, Category = e.Selected, Currency = _options.DefaultCurrency, Amount = e.Value, Description = string.Empty }); OnPropertyChanged("Incomes, Cash"); }