public ConditionViewModel(ConditionField field, EquationType equationType, IConditionValueEditor valueEditor) { Field = field; EquationType = equationType; ValueEditor = valueEditor; ValueEditor.PropertyChanged += ValueEditor_PropertyChanged; }
public override string ComputeFieldName(IConditionValueEditor valueEditor) { var exceededRoundsPlayedValueEditor = valueEditor as ValueEditors.ExceededRoundsPlayedValueEditor; if (exceededRoundsPlayedValueEditor == null) { throw new ArgumentException($"Value editor must be of type {typeof(ValueEditors.ExceededRoundsPlayedValueEditor).FullName}", nameof(valueEditor)); } return(Id + exceededRoundsPlayedValueEditor.GameType); }
public virtual string ComputeFieldName(IConditionValueEditor valueEditor) { return(Id); }