/// <summary> /// Method to add the <see cref="XtraUserControl_WishboneForces"/> to the TabPages of the BatchRun /// </summary> /// <param name="_tabPagesBatchRun"></param> private CustomXtraTabPage AddUserControlToTabPage(CustomXtraTabPage _tabPagesBatchRun, object _userControl, UserControlRequired _userControlRequired) { if (_userControlRequired == UserControlRequired.WishboneForces) { XtraUserControl_WishboneForces tempUC = (XtraUserControl_WishboneForces)_userControl; tempUC.Dock = System.Windows.Forms.DockStyle.Fill; _tabPagesBatchRun.Controls.Add(tempUC); } else if (_userControlRequired == UserControlRequired.HeatMap) { HeatMapWorksheet tempHMCWS = (HeatMapWorksheet)_userControl; tempHMCWS.Dock = System.Windows.Forms.DockStyle.Fill; _tabPagesBatchRun.Controls.Add(tempHMCWS); } return(_tabPagesBatchRun); }
/// <summary> /// Method to create <see cref="NavBarItem"/>s specifically for <see cref="HeatMapWorksheet"/> items and add them to the <see cref="Kinematics_Software_New.navBarControlResults"/> and <see cref="BatchRunGUI.navBarGroupBatchRunResults"/> /// </summary> /// <param name="_heatMapWorksheet"></param> /// <param name="_navBarItemsResults"></param> /// <param name="_navBarGroupResults"></param> /// <param name="_navBarControlResults"></param> public void CreateNavBarItem(HeatMapWorksheet _heatMapWorksheet, Dictionary <string, CusNavBarItem> _navBarItemsResults, CusNavBarGroup _navBarGroupResults, NavBarControl _navBarControlResults) { if (!_navBarItemsResults.ContainsKey(_heatMapWorksheet.Name)) { ///<summary>Creating and adding a <see cref="CusNavBarItem"/> to <see cref="navBarItem_BatchRun_Results"/></summary> _navBarItemsResults.Add(_heatMapWorksheet.Name, new CusNavBarItem(_heatMapWorksheet.Name, _heatMapWorksheet.ID, _heatMapWorksheet)); ///<summary>Adding the Items to the <see cref="Kinematics_Software_New.navBarControlResults"/></summary> _navBarControlResults.Items.Add(_navBarItemsResults[_heatMapWorksheet.Name]); _navBarControlResults.Items[_navBarItemsResults[_heatMapWorksheet.Name].Name].Visible = true; ///<summary>Adding the Items to the <see cref="navBarGroupBatchRunResults"/></summary> _navBarGroupResults.GroupStyle = NavBarGroupStyle.Default; _navBarGroupResults.ItemLinks.Add(_navBarItemsResults[_heatMapWorksheet.Name]); ///<summary>Creating a Link Clicked Event for the </summary> _navBarItemsResults[_heatMapWorksheet.Name].LinkClicked += BatchRunGUI_LinkClicked; } }
/// <summary> /// Method to create the Tab Pages for each <see cref="HeatMapWorksheet"/> inside the <see cref="HeatMapWorksheet.Worksheets"/> /// </summary> /// <param name="_tabPagesBatchRun"></param> /// <param name="_heatMapWorksheet"></param> public void CreateTabPages(Dictionary <string, CustomXtraTabPage> _tabPagesBatchRun, HeatMapWorksheet _heatMapWorksheet) { if (!_tabPagesBatchRun.ContainsKey(_heatMapWorksheet.Name)) { _tabPagesBatchRun.Add(_heatMapWorksheet.Name, CustomXtraTabPage.CreateNewTabPage_General(_heatMapWorksheet.Name)); _tabPagesBatchRun[_heatMapWorksheet.Name].PageVisible = false; _tabPagesBatchRun[_heatMapWorksheet.Name] = AddUserControlToTabPage(_tabPagesBatchRun[_heatMapWorksheet.Name], _heatMapWorksheet, UserControlRequired.HeatMap); } }