public ConfigurationStatViewModel(
     ConfigurationNodeViewModel node,
     ResultNodeViewModel minimumNode = null, ResultNodeViewModel maximumNode = null)
 {
     Node        = node;
     MinimumNode = minimumNode;
     MaximumNode = maximumNode;
 }
示例#2
0
 public PassiveTreeConnectionViewModel(ResultNodeViewModel node)
 {
     if (!(node.Stat.ExplicitRegistrationType is ExplicitRegistrationType.PassiveTreeConnection))
     {
         throw new ArgumentException($"{nameof(node)}.Stat must be explicitly registered");
     }
     Node = node;
     Node.PropertyChanged += NodeOnPropertyChanged;
 }
示例#3
0
 public GainOnActionStatViewModel(ResultNodeViewModel node)
 {
     if (node.Stat.ExplicitRegistrationType is null)
     {
         throw new ArgumentException($"{nameof(node)}.Stat must be explicitly registered");
     }
     Node = node;
     Node.PropertyChanged += NodeOnPropertyChanged;
 }
 public ResultStatViewModel(
     ResultNodeViewModel node, ModifierNodeViewModelFactory modifierNodeFactory,
     Action <ResultStatViewModel> removeAction)
 {
     _modifierNodeFactory = modifierNodeFactory;
     Node = node;
     Node.PropertyChanged += NodeOnPropertyChanged;
     RemoveCommand         = new RelayCommand(() => removeAction(this));
     ResetModifierNodes();
 }
 public ModifierNodeViewModel(Form form, ModifierSource modifierSource, ResultNodeViewModel node)
 {
     Form           = form;
     ModifierSource = modifierSource;
     Node           = node;
 }
示例#6
0
 public GainOnActionStatViewModel(ResultNodeViewModel node)
 {
     Node = node;
     Node.PropertyChanged += NodeOnPropertyChanged;
 }
 public ResultStatViewModel(
     ResultNodeViewModel node, Action <ResultStatViewModel> removeAction)
 {
     Node          = node;
     RemoveCommand = new RelayCommand(() => removeAction(this));
 }