/// <summary> /// Constructor /// </summary> public FactorValue(Factor factor, string name, List<string> paths, List<object> values) { this.factor = factor; this.Name = name; this.paths = paths; this.values = values; }
/// <summary> /// Constructor /// </summary> public FactorValue(Factor factor, string name, string path, object value) { this.factor = factor; this.Name = name; this.paths = new List<string>(); paths.Add(path); values = new List<object>(); this.values.Add(value); }
public void Attach(object model, object view, ExplorerPresenter explorerPresenter) { Factor = model as Factor; FactorView = view as IEditorView; ExplorerPresenter = explorerPresenter; FactorView.Lines = Factor.Specifications.ToArray(); FactorView.TextHasChangedByUser += OnTextHasChangedByUser; FactorView.ContextItemsNeeded += OnContextItemsNeeded; ExplorerPresenter.CommandHistory.ModelChanged += OnModelChanged; }