public virtual CriteriaGroup AddCriteriaGroup() { var gr = new CriteriaGroup(this); criteriaGroups.Add(gr); OnCriteriaGroupChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, gr)); return(gr); }
public virtual void RemoveCriteriaGroup(CriteriaGroup gr) { if (criteriaGroups.Remove(gr)) { gr.Estimator = null; OnCriteriaGroupChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, gr)); } }
public Criterion(CriteriaGroup gr) : base() { Contract.Requires(gr != null); Group = gr; Code = ""; Value = ""; }
protected internal virtual void AddCriteriaGroup(CriteriaGroup gr) { Contract.Requires(gr != null); Contract.Requires(gr.Estimator == null); if (criteriaGroups.Add(gr)) { gr.Estimator = this; OnCriteriaGroupChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, gr)); } }