Beispiel #1
0
 public ConditionViewModel(ConditionField field, EquationType equationType, IConditionValueEditor valueEditor)
 {
     Field        = field;
     EquationType = equationType;
     ValueEditor  = valueEditor;
     ValueEditor.PropertyChanged += ValueEditor_PropertyChanged;
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public virtual string ComputeFieldName(IConditionValueEditor valueEditor)
 {
     return(Id);
 }