/// <summary> /// Overloaded Constructor Initialize a Heat Map, create its name, ID and also a Data Table using the <see cref="HeatMapDataSource"/> /// </summary> /// <param name="_heatMapName">Name of the HeatMap. Pass the proper Name using an extrnal form which accepts the Name</param> /// <param name="_heatMapID">If using <see cref="Counter"/> add 1 before passing as inside this constructo, <see cref="ID"/> is not added with 1</param> public void ConstructHeatMapControl(string _heatMapName, int _heatMapID, BatchRunOutputMode _outPutMode, HeatMapMode _heatMapMode, SpecialCaseOption _specialCase, int _identifier, string _cornerName) { ID = _heatMapID; Name = _heatMapName + " " + _heatMapID; OutputMode = _outPutMode; HeatMapType = _heatMapMode; SpecialCase = _specialCase; CornerIdentifier = _identifier; CornerName = _cornerName; HeatMapDataSource.TableName = Name; HeatMapDataSource = InitializeDataTable(HeatMapDataSource); }
private void comboBoxSpecialCase_SelectedIndexChanged(object sender, EventArgs e) { if (comboBoxSpecialCase.SelectedItem != null) { SpecialCase = (SpecialCaseOption)comboBoxSpecialCase.SelectedItem; if (SpecialCase == SpecialCaseOption.None) { groupControlOPChannel.Show(); } else { groupControlOPChannel.Hide(); } } else { SpecialCase = SpecialCaseOption.None; groupControlOPChannel.Show(); } }
public void HandleGUI(NavBarControl _navBarControl, CusNavBarGroup _navBarGroup, HeatMapMode _heatMapMode, SpecialCaseOption _specialCase, int _brIndex) { BatchRunGUI.batchRuns_GUI[_brIndex].CreateTabPages(BatchRunGUI.batchRuns_GUI[_brIndex].TabPages_BatchRUn, HeatMapWorksheet.Worksheets[HeatMapWorksheet.Counter]); Kinematics_Software_New.TabControl_Outputs = CustomXtraTabPage.AddTabPages(Kinematics_Software_New.TabControl_Outputs, BatchRunGUI.batchRuns_GUI[_brIndex].TabPages_BatchRUn); BatchRunGUI.batchRuns_GUI[_brIndex].CreateNavBarItem(this, BatchRunGUI.batchRuns_GUI[_brIndex].navBarItem_BatchRun_Results, _navBarGroup, _navBarControl); this.heatMapFL.ConstructHeatMapControl(Name, ID, OutputMode, _heatMapMode, _specialCase, 1, "FrontLeft"); this.heatMapFR.ConstructHeatMapControl(Name, ID, OutputMode, _heatMapMode, _specialCase, 2, "FrontRight"); this.heatMapRL.ConstructHeatMapControl(Name, ID, OutputMode, _heatMapMode, _specialCase, 3, "RearLeft"); this.heatMapRR.ConstructHeatMapControl(Name, ID, OutputMode, _heatMapMode, _specialCase, 4, "RearRight"); }