Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
        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;
        }