示例#1
0
        private GraphSetupControl() {

            AMEManager cm = AMEManager.Instance;
            this.assessmentController = (AssessmentController)cm.Get("AssessmentEditor");
			this.measuresController = (MeasuresController)AMEManager.Instance.Get("OptMeasuresEditor");

            InitializeComponent();
        }
示例#2
0
        public AssessemntResults() {

            AMEManager cm = AMEManager.Instance;
            this.assessmentController = (AssessmentController)cm.Get("AssessmentEditor");
			this.measuresController = (MeasuresController)AMEManager.Instance.Get("OptMeasuresEditor");

            InitializeComponent();
            this.tabControl.TabPages.Clear();
        }
示例#3
0
		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();
		}
示例#4
0
        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>();
        }