Beispiel #1
0
        public void AddUserControlToTabPage(List <CustomXtraTabPage> _xtraTabPageList)
        {
            WF        = new XtraUserControl_WishboneForces();
            CW_Def_WA = new XtraUserControl_CW_Def_WA();
            LL        = new XtraUserControl_LinkLengths();
            VO        = new XtraUserControl_VehicleOutputs();
            IS        = new XtraUserControl_InputSheet(r1);
            IS.Kinematics_Software_New_ObjectInitializer(r1);

            IS.Dock = DockStyle.Fill;

            WF.Dock = DockStyle.Fill;

            CW_Def_WA.Dock = DockStyle.Fill;

            VO.Dock = DockStyle.Fill;

            LL.Dock = DockStyle.Fill;

            CADVehicleOutputs.Dock = DockStyle.Fill;

            _xtraTabPageList[0].Controls.Add(IS);
            _xtraTabPageList[1].Controls.Add(xtraScrollableControl_OutputCoordinates);
            _xtraTabPageList[2].Controls.Add(WF);
            _xtraTabPageList[3].Controls.Add(CW_Def_WA);
            _xtraTabPageList[4].Controls.Add(VO);
            _xtraTabPageList[5].Controls.Add(LL);
            _xtraTabPageList[6].Controls.Add(CADVehicleOutputs);
        }
Beispiel #2
0
        /// <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);
        }