/// <summary> /// Attach the Manager model and ManagerView to this presenter. /// </summary> /// <param name="model">The model</param> /// <param name="view">The view to attach</param> /// <param name="explorerPresenter">The explorer presenter being used</param> public void Attach(object model, object view, ExplorerPresenter explorerPresenter) { this.manager = model as Manager; this.managerView = view as IManagerView; this.explorerPresenter = explorerPresenter; this.propertyPresenter.Attach(this.manager.Script, this.managerView.GridView, this.explorerPresenter); this.managerView.Editor.Text = this.manager.Code; this.managerView.Editor.ContextItemsNeeded += this.OnNeedVariableNames; this.managerView.Editor.LeaveEditor += this.OnEditorLeave; }
public OpzioniController() { this.manager = new Manager(); }
public ProdottiController() { this.manager = new Manager(db); }