private GraphSetupControl() { AMEManager cm = AMEManager.Instance; this.assessmentController = (AssessmentController)cm.Get("AssessmentEditor"); this.measuresController = (MeasuresController)AMEManager.Instance.Get("OptMeasuresEditor"); InitializeComponent(); }
public AssessemntResults() { AMEManager cm = AMEManager.Instance; this.assessmentController = (AssessmentController)cm.Get("AssessmentEditor"); this.measuresController = (MeasuresController)AMEManager.Instance.Get("OptMeasuresEditor"); InitializeComponent(); this.tabControl.TabPages.Clear(); }
public MeasureToGraphSelector(string measureConfig, int processId, int runId) { this.measureConfig = measureConfig; this.processId = processId; this.runId = runId; measuresController = (MeasuresController)AMEManager.Instance.Get(this.measureConfig); InitializeComponent(); this.AcceptButton = this.okButton; ; this.CancelButton = this.cancelButton; ; this.loadData(); }
public ProcessPanel(ProcessType type) : this() { //projectController = (RootController)GMEManager.Instance.Get("ProjectEditor"); String typeStr = String.Empty; switch (type) { case ProcessType.OPTIMIZATION: modelingController = (ModelingController)AMEManager.Instance.Get("OptimizationEditor"); measuresController = (MeasuresController)AMEManager.Instance.Get("OptMeasuresEditor"); typeStr = "Optimization"; break; case ProcessType.SIMULATION: modelingController = (ModelingController)AMEManager.Instance.Get("SimulationEditor"); measuresController = (MeasuresController)AMEManager.Instance.Get("SimMeasuresEditor"); typeStr = "Simulation"; break; default: throw new Exception("The Process Type is not defined in the ProcessControllType enum"); } if (modelingController == null) return; this.topTabPage.Description = "Select " + typeStr + " to run"; this.topTabPage.Text = typeStr; this.bottomTabPage.Description = "Configure and Run the " + typeStr + "Run"; this.bottomTabPage.Text = typeStr + "Run"; processCustomCombo.Controller = projectController; processCustomCombo.Type = modelingController.RootComponentType; processCustomCombo.LinkType = projectController.RootComponentType; parameterTable.Controller = modelingController; modelingController.RegisterForUpdate(this); modelingController.RegisterForUpdate(processCustomCombo); modelingController.RegisterForUpdate(parameterTable); customComboList = new List<CustomCombo>(); }