public virtual void AddWork(IWork work) { if (work != null) { works.Add(work); total += work.GetTotal(); } }
public override float GetTotal() { return(then != null?then.GetTotal() : 1); }