Ejemplo n.º 1
0
		public Project() {
			StartMonth = 1;
			StartYear = DateTime.Now.Year;
			Name = "Abrechnung " + StartYear;
			Result = new ResultTable(this);
			Costs.CollectionChanged += (_, e) => {
				NotifyPropertyChanged("Costs");
                if (e.Action == NotifyCollectionChangedAction.Add)
				    foreach ( Cost c in e.NewItems ) NotifyIfChanged(c);
			};
		}
Ejemplo n.º 2
0
 public Project()
 {
     StartMonth = 1;
     StartYear  = DateTime.Now.Year;
     Name       = "Abrechnung " + StartYear;
     Result     = new ResultTable(this);
     Costs.CollectionChanged += (_, e) => {
         NotifyPropertyChanged("Costs");
         if (e.Action == NotifyCollectionChangedAction.Add)
         {
             foreach (Cost c in e.NewItems)
             {
                 NotifyIfChanged(c);
             }
         }
     };
 }
Ejemplo n.º 3
0
		private Project(string name) {
			Name = name;
			Result = new ResultTable(this);
		}
Ejemplo n.º 4
0
 private Project(string name)
 {
     Name   = name;
     Result = new ResultTable(this);
 }