/// <summary> /// Assigns the job data and creates the first stage. /// </summary> /// <param name="jd">The Job Details.</param> public void AssignJobData(JobData jd) { // assign the data this.jobData = jd; // assign the first stage number graphDisplayPanel.IntializeFirstStage(jobData.GetFirstStageNumber()); // assign the total number of stages. graphDisplayPanel.TotalStages = jobData.NumberOfStages; // initialize the ChartConfigForm. ccf = new ChartConfigForm(); // assign a handler to handle the color change events from the chart config form. ccf.ColorChange += new ChartConfigForm.ColorChangeHandler(ChangeChartLineColor); // assign a handler to handle the value change events from the chart config form. ccf.AxisValueChange += new ChartConfigForm.AxisValueChangeHandler(ChangeChartAxisValue); graphDisplayPanel.ChangeMode += new GraphSelecterDisplayPanel.ModeChangeHandler(OnModeChanged); graphDisplayPanel.AddAnnotation += new GraphSelecterDisplayPanel.AnnotationHandler(OnAddAnnotation); graphDisplayPanel.CallDelete += new GraphSelecterDisplayPanel.StageDeletionHandler(OnStageDeletion); }