public ObservableCardData(ObservableCard parent, string key, Func <ObservableCard, bool> isEnabled = null) : base()
 {
     Parent           = parent ?? throw new ArgumentNullException(nameof(parent));
     Key              = key ?? throw new ArgumentNullException(nameof(key));
     _isEnabled       = isEnabled ?? ((card) => true);
     PropertyChanged += ObservableCardData_PropertyChanged;
 }
Exemple #2
0
 public ObservableCardDataDynamicEnum(ObservableCard parent, DynamicEnum dynamicEnum, Func <ObservableCard, bool> isEnabled = null) : this(parent, dynamicEnum?.Id, dynamicEnum, isEnabled)
 {
 }
Exemple #3
0
 public ObservableCardDataDynamicEnum(ObservableCard parent, string key, DynamicEnum dynamicEnum, Func <ObservableCard, bool> isEnabled = null) : base(parent, key, isEnabled)
 {
     DynamicEnum = dynamicEnum ?? throw new ArgumentNullException(nameof(dynamicEnum));
 }
Exemple #4
0
 public ObservableCardDataEnum(ObservableCard parent, string key, Func <ObservableCard, bool> isEnabled = null) : base(parent, key, isEnabled)
 {
 }
Exemple #5
0
 public ObservableCardDataEnum(ObservableCard parent, Func <ObservableCard, bool> isEnabled = null) : base(parent, typeof(TEnum).Name, isEnabled)
 {
 }
Exemple #6
0
 public ObservableCardDataEnumBase(ObservableCard parent, string key, Func <ObservableCard, bool> isEnabled = null) : base(parent, key, isEnabled)
 {
     PropertyChanged += ObservableCardDataEnumBase_PropertyChanged;
 }