Esempio n. 1
0
        public BudgetVm CreateBudget(string aBezeichnung)
        {
            var lBudget = new BudgetVm(this)
            {
                Bezeichnung = aBezeichnung
            };

            this.Budgets.Add(lBudget);

            if (this.Id >= 0)
            {
                // Direkt speichern
                DataManager.Budget.SaveBudget(lBudget);
            }

            return(lBudget);
        }
Esempio n. 2
0
 internal BuchungVm(BudgetVm aBudgetVm, BuchungRow aRow)
 {
     this.Row       = aRow;
     this.mBudgetVm = aBudgetVm;
 }
Esempio n. 3
0
 internal BuchungVm(BudgetVm aBudgetVm)
 {
     this.Row          = BuchungRow.InitEmpty();
     this.mBudgetVm    = aBudgetVm;
     this.Row.IDBudget = this.mBudgetVm.Id;
 }
 internal DauerauftragVm(BudgetVm aBudgetVm, DauerauftragRow aRow)
 {
     this.Row       = aRow;
     this.mBudgetVm = aBudgetVm;
 }
 internal DauerauftragVm(BudgetVm aBudgetVm)
 {
     this.Row          = DauerauftragRow.InitEmpty();
     this.mBudgetVm    = aBudgetVm;
     this.Row.IDBudget = this.mBudgetVm.Id;
 }