예제 #1
0
        internal Budget(BudgetSnapshot snapshot) : base(snapshot)
        {
            MasterCategories = RegisterChildEntityCollection(new EntityCollection <MasterCategory>(this));
            IncomeCategories = new IncomeCategoryFinder();
            Payees           = RegisterChildEntityCollection(new EntityCollection <Payee>(this));
            Accounts         = RegisterChildEntityCollection(new EntityCollection <Account>(this));

            ValidationEnabled = true;
        }
예제 #2
0
        public Budget()
            : base(Guid.NewGuid().ToString())
        {
            MasterCategories = RegisterChildEntityCollection(new EntityCollection <MasterCategory>(this, true));
            IncomeCategories = new IncomeCategoryFinder();
            Payees           = RegisterChildEntityCollection(new EntityCollection <Payee>(this, true));
            Accounts         = RegisterChildEntityCollection(new EntityCollection <Account>(this, true));

            ValidationEnabled = true;
        }
예제 #3
0
 public CategoryCellViewModel(
     TransactionGridColumnViewModel <EntityBase> column,
     TransactionGridRowViewModel row,
     Transaction transaction,
     EntityCollection <MasterCategory> masterCategorySource,
     IncomeCategoryFinder incomeCategorySource)
     : base(column, row, transaction)
 {
     _masterCategorySource = masterCategorySource;
     _incomeCategorySource = incomeCategorySource;
 }
예제 #4
0
 public CategoryColumnViewModel(
     Func <SubTransaction, EntityBase> getter,
     Action <SubTransaction, EntityBase> setter,
     string header,
     string propertyName,
     int width,
     EntityCollection <MasterCategory> categorySource,
     IncomeCategoryFinder incomeCategorySource)
     : base(getter, setter, header, propertyName, width)
 {
     _categorySource       = categorySource;
     _incomeCategorySource = incomeCategorySource;
 }