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