public void FrontCADPreProcessor(SuspensionCoordinatesFrontGUI _scflGUI, int Index, bool IsRecreated)
        {
            ///<summary>
            ///This method initializes the CAD user control and viewport.
            ///This method is called only during the creation of a Suspension Item
            ///</summary>
            try
            {
                if (!IsRecreated)
                {
                    _scflGUI.TabPage_FrontCAD = CustomXtraTabPage.CreateNewTabPage_ForInputs("Front Suspension ", SuspensionCoordinatesFront.Assy_List_SCFL[Index].SCFL_ID);
                }

                _scflGUI.CADFront = new CAD();
                _scflGUI.TabPage_FrontCAD.Controls.Add(_scflGUI.CADFront);
                Kinematics_Software_New.TabControl_Outputs = CustomXtraTabPage.AddTabPages(Kinematics_Software_New.TabControl_Outputs, _scflGUI.TabPage_FrontCAD);
                _scflGUI.CADFront.Dock = DockStyle.Fill;
                CreateFrontCAD(_scflGUI.CADFront, _scflGUI, SuspensionCoordinatesFront.Assy_List_SCFL[Index], SuspensionCoordinatesFrontRight.Assy_List_SCFR[Index]);
                _scflGUI.CADFront.SetupViewPort();
                _scflGUI.CADFront.Visible = true;
                Kinematics_Software_New.TabControl_Outputs.SelectedTabPage = _scflGUI.TabPage_FrontCAD;
            }
            catch (Exception)
            {
                // Keeping this code in try and catch block will help during Open operation. If the method is called without a Suspension or SuspensionGUI item being present, then the software won't crash
            }
        }
예제 #2
0
        public List <CustomXtraTabPage> CreateTabPages_For_Vehicle_Outputs(List <CustomXtraTabPage> _xtraTabPageList, Kinematics_Software_New _R1, int _VehicleID)
        {
            _xtraTabPageList = new List <CustomXtraTabPage>();

            CustomXtraTabPage TabPage_InputSheet;

            TabPage_InputSheet = CustomXtraTabPage.CreateNewTabPage_ForVehicleOutputs("Input Sheet- ", _VehicleID);

            CustomXtraTabPage TabPage_SuspensionCoordinatesOutput;

            TabPage_SuspensionCoordinatesOutput = CustomXtraTabPage.CreateNewTabPage_ForVehicleOutputs("Suspension Coordinates- ", _VehicleID);

            CustomXtraTabPage TabPage_WishboneForces;

            TabPage_WishboneForces = CustomXtraTabPage.CreateNewTabPage_ForVehicleOutputs("Wishbone Forces- ", _VehicleID);

            CustomXtraTabPage TabPage_CornerWeights_Deflections_WA;

            TabPage_CornerWeights_Deflections_WA = CustomXtraTabPage.CreateNewTabPage_ForVehicleOutputs("Corner Weights, Deflections and Wheel Alignment- ", _VehicleID);

            CustomXtraTabPage TabPage_VehicleOutputs;

            TabPage_VehicleOutputs = CustomXtraTabPage.CreateNewTabPage_ForVehicleOutputs("Vehicle Outputs- ", _VehicleID);

            CustomXtraTabPage TabPage_LinkLengths;

            TabPage_LinkLengths = CustomXtraTabPage.CreateNewTabPage_ForVehicleOutputs("Link Lengths- ", _VehicleID);

            CustomXtraTabPage TabPage_OutputCAD;

            TabPage_OutputCAD = CustomXtraTabPage.CreateNewTabPage_ForVehicleOutputs("CAD- ", _VehicleID);

            AddSuspensionGridtoScrollableControl();

            _xtraTabPageList.Insert(0, TabPage_InputSheet);
            _xtraTabPageList[0].PageVisible = false;

            _xtraTabPageList.Insert(1, TabPage_SuspensionCoordinatesOutput);
            _xtraTabPageList[1].PageVisible = false;

            _xtraTabPageList.Insert(2, TabPage_WishboneForces);
            _xtraTabPageList[2].PageVisible = false;

            _xtraTabPageList.Insert(3, TabPage_CornerWeights_Deflections_WA);
            _xtraTabPageList[3].PageVisible = false;

            _xtraTabPageList.Insert(4, TabPage_VehicleOutputs);
            _xtraTabPageList[4].PageVisible = false;

            _xtraTabPageList.Insert(5, TabPage_LinkLengths);
            _xtraTabPageList[5].PageVisible = false;

            _xtraTabPageList.Insert(6, TabPage_OutputCAD);
            _xtraTabPageList[6].PageVisible = false;

            AddUserControlToTabPage(_xtraTabPageList);

            return(_xtraTabPageList);
        }
        public static CustomXtraTabPage CreateNewTabPage_ForInputs(string _TabPageName, int _ID)
        {
            CustomXtraTabPage xtraTabPage = new CustomXtraTabPage();

            xtraTabPage.Name = _TabPageName;
            xtraTabPage.Text = _TabPageName + " " + _ID;
            return(xtraTabPage);
        }
        public static CustomXtraTabPage CreateNewTabPage_General(string _TabPageName)
        {
            CustomXtraTabPage xtraTabPage = new CustomXtraTabPage();

            xtraTabPage.Name = _TabPageName;
            xtraTabPage.Text = _TabPageName;

            return(xtraTabPage);
        }
        public static CustomXtraTabPage CreateNewTabPage_ForVehicleOutputs(string _TabPageName, int _VehicleID)
        {
            CustomXtraTabPage xtraTabPage = new CustomXtraTabPage();

            xtraTabPage.Name = _TabPageName;
            xtraTabPage.Text = _TabPageName + Vehicle.List_Vehicle[_VehicleID - 1]._VehicleName;

            return(xtraTabPage);
        }
예제 #6
0
 public MotionGUI(string _motionName, int _motionID, Kinematics_Software_New _r1)
 {
     r1 = _r1;
     motionGUI_MotionChart = new MotionChart(this);
     _MotionGUIName        = _motionName + _motionID;
     navBaritemMotionGUI   = new CusNavBarItem(_motionName, _motionID, this);
     TabPage_MotionGUI     = CustomXtraTabPage.CreateNewTabPage_ForInputs(_motionName, _motionID);
     //TabPage_MotionGUI = CustomXtraTabPage.AddUserControlToTabPage(motionGUI_MotionChart, TabPage_MotionGUI, DockStyle.Fill);
 }
예제 #7
0
 /// <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);
     }
 }
예제 #8
0
        public void HandleGUI(NavBarGroup _navBarGroup, NavBarControl _navBarControl, Kinematics_Software_New _r1, int Index)
        {
            TabPage_MotionGUI = CustomXtraTabPage.AddUserControlToTabPage(motionGUI_MotionChart, TabPage_MotionGUI, DockStyle.Fill);
            Kinematics_Software_New.TabControl_Outputs = CustomXtraTabPage.AddTabPages(Kinematics_Software_New.TabControl_Outputs, List_MotionGUI[Index].TabPage_MotionGUI);
            Kinematics_Software_New.TabControl_Outputs.SelectedTabPage = List_MotionGUI[Index].TabPage_MotionGUI;

            List_MotionGUI[Index].navBaritemMotionGUI.CreateNavBarItem(List_MotionGUI[Index].navBaritemMotionGUI, _navBarGroup, _navBarControl);

            List_MotionGUI[Index].navBaritemMotionGUI = List_MotionGUI[Index].LinkClickedEventCreater(List_MotionGUI[Index].navBaritemMotionGUI, _r1);
        }
예제 #9
0
 /// <summary>
 /// Method to create the Tab Pages for each Load Case inside the <paramref name="_batchRunLoadCases"/>
 /// </summary>
 /// <param name="_tabPagesBatchRun"></param>
 /// <param name="_batchRunLoadCases"></param>
 public void CreateTabPages(Dictionary <string, CustomXtraTabPage> _tabPagesBatchRun, List <LoadCase> _batchRunLoadCases)
 {
     for (int i = 0; i < _batchRunLoadCases.Count; i++)
     {
         if (!_tabPagesBatchRun.ContainsKey(_batchRunLoadCases[i].LoadCaseName))
         {
             _tabPagesBatchRun.Add(_batchRunLoadCases[i].LoadCaseName, CustomXtraTabPage.CreateNewTabPage_General(_batchRunLoadCases[i].LoadCaseName));
             _tabPagesBatchRun[_batchRunLoadCases[i].LoadCaseName].PageVisible = false;
             _tabPagesBatchRun[_batchRunLoadCases[i].LoadCaseName]             = AddUserControlToTabPage(_tabPagesBatchRun[_batchRunLoadCases[i].LoadCaseName], LoadCaseGUI.List_LoadCaseGUI[i].batchRun_WF, UserControlRequired.WishboneForces);
         }
     }
 }
예제 #10
0
        /// <summary>
        /// Method to Handle the GUI Operations of Adding User Control to the Tab Page, navBarItems to the NavBarGroups and TabPages to the TabControl
        /// </summary>
        /// <param name="_navBarGroup">Object of the NavBarGroup inside the Simulation NavBarControl which refers to the Load Case</param>
        /// <param name="_navBarControl">NavBarControl Simulation</param>
        /// <param name="_r1">Object of the Main Class Form</param>
        /// <param name="Index">Index referes to the List Index of the LoadCase List. This is <c>_LoadCaseID<c> - 1.</param>
        public void HandleGUI(NavBarGroup _navBarGroup, NavBarControl _navBarControl, Kinematics_Software_New _r1, int Index, bool _defaultItemBeingCreated)
        {
            r1 = _r1;
            ///<remarks>
            ///Adding the Grid Controls to the Group Controls of the Load Case User Control
            /// </remarks>
            LC.groupControlNSMFL.Controls.Add(Grid_NSM_FL);
            Grid_NSM_FL.Dock = DockStyle.Fill;
            LC.groupControlNSMFR.Controls.Add(Grid_NSM_FR);
            Grid_NSM_FR.Dock = DockStyle.Fill;
            LC.groupControlNSMRL.Controls.Add(Grid_NSM_RL);
            Grid_NSM_RL.Dock = DockStyle.Fill;
            LC.groupControlNSMRR.Controls.Add(Grid_NSM_RR);
            Grid_NSM_RR.Dock = DockStyle.Fill;
            LC.groupControlSuspendedMass.Controls.Add(Grid_Suspended);
            Grid_Suspended.Dock = DockStyle.Fill;
            LC.groupControlFLBearing.Controls.Add(Grid_BearingAttachment_FL);
            Grid_BearingAttachment_FL.Dock = DockStyle.Fill;
            LC.groupControlFRBearing.Controls.Add(Grid_BearingAttachment_FR);
            Grid_BearingAttachment_FR.Dock = DockStyle.Fill;
            LC.groupControlRLBearing.Controls.Add(Grid_BearingAttachment_RL);
            Grid_BearingAttachment_RL.Dock = DockStyle.Fill;
            LC.groupControlRRBearing.Controls.Add(Grid_BearingAttachment_RR);
            Grid_BearingAttachment_RR.Dock = DockStyle.Fill;
            LC.groupControlSteeringColumnBearing.Controls.Add(Grid_BearingAttachment_SteeringColumn);
            Grid_BearingAttachment_SteeringColumn.Dock = DockStyle.Fill;

            ///<remarks>
            ///Adding the User Control to the TabPage
            ///Nxt, Adding the TabPage to the TabControl of the Main Form
            ///Last, Selecting the newly added page
            /// </remarks>
            TabPage_LC = CustomXtraTabPage.AddUserControlToTabPage(LC, TabPage_LC, DockStyle.Fill);
            Kinematics_Software_New.TabControl_Outputs = CustomXtraTabPage.AddTabPages(Kinematics_Software_New.TabControl_Outputs, List_LoadCaseGUI[Index].TabPage_LC);
            if (!_defaultItemBeingCreated)
            {
                Kinematics_Software_New.TabControl_Outputs.SelectedTabPage = List_LoadCaseGUI[Index].TabPage_LC;
            }
            if (_defaultItemBeingCreated)
            {
                for (int i = 0; i < Kinematics_Software_New.TabControl_Outputs.TabPages.Count; i++)
                {
                    Kinematics_Software_New.TabControl_Outputs.TabPages[i].PageVisible = false;
                }
            }

            ///<remarks>
            ///Adding the NavBarItem to the LoadCase Group of the Simulation NavBarControl
            ///Assigning Link Clicked Events
            /// </remarks>
            List_LoadCaseGUI[Index].navBarItemLoadCase.CreateNavBarItem(List_LoadCaseGUI[Index].navBarItemLoadCase, _navBarGroup, _navBarControl);
            List_LoadCaseGUI[Index].navBarItemLoadCase = List_LoadCaseGUI[Index].LinkClickedEventCreator(List_LoadCaseGUI[Index].navBarItemLoadCase, _r1);
        }
        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");
        }
예제 #12
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);
        }
예제 #13
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_vehicleGUI"></param>
        /// <param name="Index"></param>
        /// <param name="IsRecreated"></param>
        /// <param name="_ImportCAD"></param>
        public void VehicleCADPreProcessor(VehicleGUI _vehicleGUI, int Index, bool IsRecreated, bool _ImportCAD, bool _SuspensionIsCreated)
        {
            try
            {
                if (!IsRecreated)
                {
                    _vehicleGUI.TabPage_VehicleInputCAD = CustomXtraTabPage.CreateNewTabPage_ForInputs("Vehicle ", Vehicle.List_Vehicle[Index].VehicleID);
                }

                //_vehicleGUI.CADVehicleInputs = new CAD();
                _vehicleGUI.CadIsTobeImported = _ImportCAD;
                if (_ImportCAD == true)
                {
                    _vehicleGUI.TabPage_VehicleInputCAD.Controls.Add(_vehicleGUI.importCADForm);
                    _vehicleGUI.importCADForm.Dock = DockStyle.Fill;
                }
                else
                {
                    _vehicleGUI.TabPage_VehicleInputCAD.Controls.Add(_vehicleGUI.CADVehicleInputs);
                    _vehicleGUI.CADVehicleInputs.Dock = DockStyle.Fill;
                }
                Kinematics_Software_New.TabControl_Outputs = CustomXtraTabPage.AddTabPages(Kinematics_Software_New.TabControl_Outputs, _vehicleGUI.TabPage_VehicleInputCAD);

                if (_SuspensionIsCreated)
                {
                    if (_vehicleGUI.VisualizationType == VehicleVisualizationType.Generic)
                    {
                        EditORCreateVehicleCAD(_vehicleGUI.CADVehicleInputs, Vehicle.List_Vehicle[Index].VehicleID - 1, true, _vehicleGUI.Vehicle_MotionExists, 0, false, CadIsTobeImported, PlotWheel);
                    }
                    else if (_vehicleGUI.VisualizationType == VehicleVisualizationType.ImportedCAD)
                    {
                        EditORCreateVehicleCAD(_vehicleGUI.importCADForm.importCADViewport, Vehicle.List_Vehicle[Index].VehicleID - 1, true, _vehicleGUI.Vehicle_MotionExists, 0, false, CadIsTobeImported, PlotWheel);
                    }
                }
                _vehicleGUI.CADVehicleInputs.SetupViewPort();
                _vehicleGUI.CADVehicleInputs.Visible = true;
                Kinematics_Software_New.TabControl_Outputs.SelectedTabPage = _vehicleGUI.TabPage_VehicleInputCAD;
            }
            catch (Exception E)
            {
                string error = E.Message;
                // Keeping this code in try and catch block will help during Open operation. If the method is called without a Vehicle or VehicleGUI item being present, then the software won't crash
            }
        }
예제 #14
0
        public MotionGUI(SerializationInfo info, StreamingContext context)
        {
            _MotionGUIName    = (string)info.GetValue("_MotionGUIName", typeof(string));
            _MotionGUICounter = (int)info.GetValue("_MotionGUICounter", typeof(int));

            ChartPoints_WheelDef_X = (double[])info.GetValue("ChartPoints_WheelDef_X", typeof(double[]));
            ChartPoints_WheelDef_Y = (double[])info.GetValue("ChartPoints_WheelDef_Y", typeof(double[]));
            ChartPoints_Steering_X = (double[])info.GetValue("ChartPoints_Steering_X", typeof(double[]));
            ChartPoints_Steering_Y = (double[])info.GetValue("ChartPoints_Steering_Y", typeof(double[]));

            List_MotionGUI = (List <MotionGUI>)info.GetValue("List_MotionGUI", typeof(List <MotionGUI>));

            TabPage_MotionGUI   = (CustomXtraTabPage)info.GetValue("TabPage_MotionGUI", typeof(CustomXtraTabPage));
            navBaritemMotionGUI = (CusNavBarItem)info.GetValue("navBarItemMotionGUI", typeof(CusNavBarItem));

            DeflectionExists = (bool)info.GetValue("DeflectionExists", typeof(bool));
            SteeringExists   = (bool)info.GetValue("SteeringExists", typeof(bool));

            motionGUI_MotionChart = new MotionChart(this);
        }
예제 #15
0
        /// <summary>
        /// Method to Initialize all the GUI parameters of the Setup Change
        /// </summary>
        /// <param name="_navBarGroup"><see cref="NavBarGroup"/> of the Setup Change</param>
        /// <param name="_navBarControl"><see cref="NavBarControl"/> of the Setup Change</param>
        /// <param name="_indexSetupChange">ID of the Setup Change which is calling this function</param>
        public void HandleGUI(NavBarGroup _navBarGroup, NavBarControl _navBarControl, int _indexSetupChange)
        {
            TabPage_SetupChangeGUI = CustomXtraTabPage.AddUserControlToTabPage(XUC_SetupChange, TabPage_SetupChangeGUI, System.Windows.Forms.DockStyle.Fill);
            Kinematics_Software_New.TabControl_Outputs = CustomXtraTabPage.AddTabPages(Kinematics_Software_New.TabControl_Outputs, TabPage_SetupChangeGUI);
            Kinematics_Software_New.TabControl_Outputs.SelectedTabPage = List_SetupChangeGUI[_indexSetupChange].TabPage_SetupChangeGUI;

            List_SetupChangeGUI[_indexSetupChange].navBarItemSetupChange.CreateNavBarItem(List_SetupChangeGUI[_indexSetupChange].navBarItemSetupChange, _navBarGroup, _navBarControl);

            List_SetupChangeGUI[_indexSetupChange].navBarItemSetupChange = List_SetupChangeGUI[_indexSetupChange].LinkClickedEventCreator(List_SetupChangeGUI[_indexSetupChange].navBarItemSetupChange);

            List_SetupChangeGUI[_indexSetupChange].XUC_SetupChange.SetupChangeFL.GetGrandParentObjectData(this, setupChangeFL_GUI, 1, "Front Left", _indexSetupChange);
            List_SetupChangeGUI[_indexSetupChange].XUC_SetupChange.SetupChangeFR.GetGrandParentObjectData(this, setupChangeFR_GUI, 2, "Front Right", _indexSetupChange);
            List_SetupChangeGUI[_indexSetupChange].XUC_SetupChange.SetupChangeRL.GetGrandParentObjectData(this, setupChangeRL_GUI, 3, "Rear Left", _indexSetupChange);
            List_SetupChangeGUI[_indexSetupChange].XUC_SetupChange.SetupChangeRR.GetGrandParentObjectData(this, setupChangeRR_GUI, 4, "Rear Right", _indexSetupChange);

            List_SetupChangeGUI[_indexSetupChange].EditSetupChangeDeltas(setupChangeFL_GUI, 1);
            List_SetupChangeGUI[_indexSetupChange].EditSetupChangeDeltas(setupChangeFR_GUI, 2);
            List_SetupChangeGUI[_indexSetupChange].EditSetupChangeDeltas(setupChangeRL_GUI, 3);
            List_SetupChangeGUI[_indexSetupChange].EditSetupChangeDeltas(setupChangeRR_GUI, 4);
        }
예제 #16
0
        public VehicleGUI(SerializationInfo info, StreamingContext context)
        {
            _VehicleGUIName            = (string)info.GetValue("VehicleGUI_Name", typeof(string));
            _VehicleID                 = (int)info.GetValue("_VehicleID", typeof(int));
            navBarItem_Vehicle_Results = (List <CusNavBarItem>)info.GetValue("navBarItemResults", typeof(List <CusNavBarItem>));
            navBarGroup_Vehicle_Result = (CusNavBarGroup)info.GetValue("navBarGroupResults", typeof(CusNavBarGroup));
            TabPages_Vehicle           = (List <CustomXtraTabPage>)info.GetValue("TabPages", typeof(List <CustomXtraTabPage>));
            TabPage_VehicleInputCAD    = (CustomXtraTabPage)info.GetValue("TabPage_VehicleInputCAD", typeof(CustomXtraTabPage));

            AssemblyChecker_GUI         = (int)info.GetValue("AssemblyChecker_GUI", typeof(int));
            SuspensionIsAssembled_GUI   = (bool)info.GetValue("SuspensionIsAssembled_GUI", typeof(bool));
            TireIsAssembled_GUI         = (bool)info.GetValue("TireIsAssembled_GUI", typeof(bool));
            SpringIsAssembled_GUI       = (bool)info.GetValue("SpringIsAssembled_GUI", typeof(bool));
            DamperIsAssembled_GUI       = (bool)info.GetValue("DamperIsAssembled_GUI", typeof(bool));
            ARBIsAssembled_GUI          = (bool)info.GetValue("ARBIsAssembled_GUI", typeof(bool));
            ChassisIsAssembled_GUI      = (bool)info.GetValue("ChassisIsAssembled_GUI", typeof(bool));
            WAIsAssembled_GUI           = (bool)info.GetValue("WAIsAssembled_GUI", typeof(bool));
            VehicleHasBeenValidated_GUI = (bool)info.GetValue("VehicleHasBeenValidated_GUI", typeof(bool));

            _OutputOriginX = (double)info.GetValue("OutputOriginX", typeof(double));
            _OutputOriginY = (double)info.GetValue("OutputOriginY", typeof(double));
            _OutputOriginZ = (double)info.GetValue("OutputOriginZ", typeof(double));

            Vehicle_MotionExists = (bool)info.GetValue("Vehicle_MotionExists", typeof(bool));

            IndexOfOutput = (int)info.GetValue("IndexOfOutput", typeof(int));

            ocGUI_FL = (OutputClassGUI)info.GetValue("ocGUI_FL", typeof(OutputClassGUI));
            ocGUI_FR = (OutputClassGUI)info.GetValue("ocGUI_FR", typeof(OutputClassGUI));
            ocGUI_RL = (OutputClassGUI)info.GetValue("ocGUI_RL", typeof(OutputClassGUI));
            ocGUI_RR = (OutputClassGUI)info.GetValue("ocGUI_RR", typeof(OutputClassGUI));

            CadIsTobeImported   = (bool)info.GetValue("CadIsTobeImported", typeof(bool));
            FileHasBeenImported = (bool)info.GetValue("FileHasBeenImported", typeof(bool));
            OutputIGESPlotted   = (bool)info.GetValue("OutputIGESPlotted", typeof(bool));
            IGESFIleName        = (string)info.GetValue("IGESFIleName", typeof(string));

            //CADVehicleInputs = (CAD)info.GetValue("CADVehicleInputs", typeof(CAD));
            //CADVehicleOutputs = (CAD)info.GetValue("CADVehicleOutputs", typeof(CAD));
        }
예제 #17
0
 public void RearCADPreProcessor(SuspensionCoordinatesRearGUI _scrlGUI, int Index, bool IsRecreated)
 {
     try
     {
         if (!IsRecreated)
         {
             _scrlGUI.TabPage_RearCAD = CustomXtraTabPage.CreateNewTabPage_ForInputs("Rear Suspension ", SuspensionCoordinatesRear.Assy_List_SCRL[Index].SCRL_ID);
         }
         _scrlGUI.CADRear = new CAD();
         _scrlGUI.TabPage_RearCAD.Controls.Add(_scrlGUI.CADRear);
         Kinematics_Software_New.TabControl_Outputs = CustomXtraTabPage.AddTabPages(Kinematics_Software_New.TabControl_Outputs, _scrlGUI.TabPage_RearCAD);
         _scrlGUI.CADRear.Dock = DockStyle.Fill;
         CreateRearCAD(_scrlGUI.CADRear, _scrlGUI, SuspensionCoordinatesRear.Assy_List_SCRL[Index], SuspensionCoordinatesRearRight.Assy_List_SCRR[Index]);
         _scrlGUI.CADRear.SetupViewPort();
         _scrlGUI.CADRear.Visible = true;
         Kinematics_Software_New.TabControl_Outputs.SelectedTabPage = _scrlGUI.TabPage_RearCAD;
     }
     catch (Exception E)
     {
         string error = E.Message;
         // Keeping this code in try and catch block will help during Open operation. If the method is called without a Suspension or SuspensionGUI item being present, then the software won't crash
     }
 }
예제 #18
0
        /// <summary>
        /// Overloaded Constructor
        /// </summary>
        /// <param name="_setupChangeName">Name of the Setup Change</param>
        /// <param name="_setupChangeID">ID of the Setup Change </param>
        public SetupChange_GUI(string _setupChangeName, int _setupChangeID)
        {
            R1 = Kinematics_Software_New.AssignFormVariable();

            ///<summary>Assinging the Name</summary>
            _SetupChangeName = _setupChangeName + _setupChangeID;

            ///<summary>Assinging the ID</summary>
            _SetupChangeID = _setupChangeID;

            ///<summary>Initializing the <see cref="SetupChange_CornerVariables"/>objects</summary>
            setupChangeFL_GUI = new SetupChange_CornerVariables();
            setupChangeFR_GUI = new SetupChange_CornerVariables();
            setupChangeRL_GUI = new SetupChange_CornerVariables();
            setupChangeRR_GUI = new SetupChange_CornerVariables();

            XUC_SetupChange = new XUC_SetupChange();

            ///<summary>Initializing the <see cref="NavBarItem"/> Object</summary>
            navBarItemSetupChange = new CusNavBarItem(_setupChangeName, _setupChangeID, this);

            ///<summary>Initialzing the <see cref="CustomXtraTabPage"/> object</summary>
            TabPage_SetupChangeGUI = CustomXtraTabPage.CreateNewTabPage_ForInputs(_setupChangeName, _setupChangeID);
        }
예제 #19
0
        public LoadCaseGUI(SerializationInfo info, StreamingContext context)
        {
            #region General Variables
            _LoadCaseName    = (string)info.GetValue("_LoadCaseName", typeof(string));
            _LoadCaseID      = (int)info.GetValue("_LoadCaseID", typeof(int));
            _LoadCaseCounter = (int)info.GetValue("_LoadCaseCounter", typeof(int));
            CustomLoadCase   = (bool)info.GetValue("CustomLoadCase", typeof(bool));
            #endregion

            #region Load Case Variables
            SM_Ax_GUI = (double)info.GetValue("SM_Ax_GUI", typeof(double));
            SM_Ay_GUI = (double)info.GetValue("SM_Ay_GUI", typeof(double));
            SM_Az_GUI = (double)info.GetValue("SM_Az_GUI", typeof(double));

            NSM_FL_Ax_GUI = (double)info.GetValue("NSM_FL_Ax_GUI", typeof(double));
            NSM_FL_Ay_GUI = (double)info.GetValue("NSM_FL_Ay_GUI", typeof(double));
            NSM_FL_Az_GUI = (double)info.GetValue("NSM_FL_Az_GUI", typeof(double));

            NSM_FR_Ax_GUI = (double)info.GetValue("NSM_FR_Ax_GUI", typeof(double));
            NSM_FR_Ay_GUI = (double)info.GetValue("NSM_FR_Ay_GUI", typeof(double));
            NSM_FR_Az_GUI = (double)info.GetValue("NSM_FR_Az_GUI", typeof(double));

            NSM_RL_Ax_GUI = (double)info.GetValue("NSM_RL_Ax_GUI", typeof(double));
            NSM_RL_Ay_GUI = (double)info.GetValue("NSM_RL_Ay_GUI", typeof(double));
            NSM_RL_Az_GUI = (double)info.GetValue("NSM_RL_Az_GUI", typeof(double));

            NSM_RR_Ax_GUI = (double)info.GetValue("NSM_RR_Ax_GUI", typeof(double));
            NSM_RR_Ay_GUI = (double)info.GetValue("NSM_RR_Ay_GUI", typeof(double));
            NSM_RR_Az_GUI = (double)info.GetValue("NSM_RR_Az_GUI", typeof(double));

            NSM_FL_LatGripDistribution_GUI  = (double)info.GetValue("NSM_FL_LatGripDistribution_GUI", typeof(double));
            NSM_FL_LongGripDistribution_GUI = (double)info.GetValue("NSM_FL_LongGripDistribution_GUI", typeof(double));

            NSM_FR_LatGripDistribution_GUI  = (double)info.GetValue("NSM_FR_LatGripDistribution_GUI", typeof(double));
            NSM_FR_LongGripDistribution_GUI = (double)info.GetValue("NSM_FR_LongGripDistribution_GUI", typeof(double));

            NSM_RL_LatGripDistribution_GUI  = (double)info.GetValue("NSM_RL_LatGripDistribution_GUI", typeof(double));
            NSM_RL_LongGripDistribution_GUI = (double)info.GetValue("NSM_RL_LongGripDistribution_GUI", typeof(double));

            NSM_RR_LatGripDistribution_GUI  = (double)info.GetValue("NSM_RR_LatGripDistribution_GUI", typeof(double));
            NSM_RR_LongGripDistribution_GUI = (double)info.GetValue("NSM_RR_LongGripDistribution_GUI", typeof(double));

            NSM_FL_Mx_GUI = (double)info.GetValue("NSM_FL_Mx_GUI", typeof(double));
            NSM_FL_Mz_GUI = (double)info.GetValue("NSM_FL_Mz_GUI", typeof(double));

            NSM_FR_Mx_GUI = (double)info.GetValue("NSM_FR_Mx_GUI", typeof(double));
            NSM_FR_Mz_GUI = (double)info.GetValue("NSM_FR_Mz_GUI", typeof(double));

            NSM_RL_Mx_GUI = (double)info.GetValue("NSM_RL_Mx_GUI", typeof(double));
            NSM_RL_Mz_GUI = (double)info.GetValue("NSM_RL_Mz_GUI", typeof(double));

            NSM_RR_Mx_GUI = (double)info.GetValue("NSM_RR_Mx_GUI", typeof(double));
            NSM_RR_Mz_GUI = (double)info.GetValue("NSM_RR_Mz_GUI", typeof(double));

            FL_BearingCoordinates_GUI = (double[, ])info.GetValue("FL_BearingCoordinates_GUI", typeof(double[, ]));
            FR_BearingCoordinates_GUI = (double[, ])info.GetValue("FR_BearingCoordinates_GUI", typeof(double[, ]));
            RL_BearingCoordinates_GUI = (double[, ])info.GetValue("RL_BearingCoordinates_GUI", typeof(double[, ]));
            RR_BearingCoordinates_GUI = (double[, ])info.GetValue("RR_BearingCoordinates_GUI", typeof(double[, ]));
            SteeringColumnBearing_GUI = (double[, ])info.GetValue("SteeringColumnBearing_GUI", typeof(double[, ]));

            #endregion

            #region Navidation Bar item
            navBarItemLoadCase = (CusNavBarItem)info.GetValue("navBarItemLoadCase", typeof(CusNavBarItem));
            #endregion

            #region Data Tables
            NSM_FL_DataTableGUI                 = (DataTable)info.GetValue("NSM_FL_DataTableGUI", typeof(DataTable));
            NSM_FR_DataTableGUI                 = (DataTable)info.GetValue("NSM_FR_DataTableGUI", typeof(DataTable));
            NSM_RL_DataTableGUI                 = (DataTable)info.GetValue("NSM_RL_DataTableGUI", typeof(DataTable));
            NSM_RR_DataTableGUI                 = (DataTable)info.GetValue("NSM_RR_DataTableGUI", typeof(DataTable));
            SuspendedMass_DataTableGUI          = (DataTable)info.GetValue("SuspendedMass_DataTableGUI", typeof(DataTable));
            FL_Bearing_DataTable_GUI            = (DataTable)info.GetValue("FL_Bearing_DataTable_GUI", typeof(DataTable));
            FR_Bearing_DataTable_GUI            = (DataTable)info.GetValue("FR_Bearing_DataTable_GUI", typeof(DataTable));
            RL_Bearing_DataTable_GUI            = (DataTable)info.GetValue("RL_Bearing_DataTable_GUI", typeof(DataTable));
            RR_Bearing_DataTable_GUI            = (DataTable)info.GetValue("RR_Bearing_DataTable_GUI", typeof(DataTable));
            SteeringColumnBearing_DataTable_GUI = (DataTable)info.GetValue("SteeringColumnBearing_DataTable_GUI", typeof(DataTable));
            #endregion

            #region Tab Page
            TabPage_LC = (CustomXtraTabPage)info.GetValue("TabPage_LC", typeof(CustomXtraTabPage));
            #endregion
        }
        public static CustomXtraTabPage AddUserControlToTabPage(XtraUserControl xtraUserControl, CustomXtraTabPage customXtraTabPage, DockStyle dockStyle)
        {
            customXtraTabPage.Controls.Add(xtraUserControl);
            xtraUserControl.Dock = dockStyle;

            return(customXtraTabPage);
        }
예제 #21
0
        /// <summary>
        /// Contructor of the LoadCaseGUI Class
        /// </summary>
        /// <param name="_loadCaseName">Name of the Load Case. Default is "Load Case + ID" which will be used for Custom Load Cases. </param>
        /// <param name="_loadCaseID">ID of the Load Case being created</param>
        /// <param name="_r1"></param>
        public LoadCaseGUI(string _loadCaseName, int _loadCaseID, Kinematics_Software_New _r1)
        {
            r1 = _r1;

            #region Initializing the Data Tables
            ///<summary>
            ///Front Left Non Suspended Mass Data Table Initialization
            /// </summary>
            NSM_FL_DataTableGUI = new DataTable();

            NSM_FL_DataTableGUI.TableName = "Front Left Non Suspended Mass Parameters";

            NSM_FL_DataTableGUI.Columns.Add("Input Parameters", typeof(string));
            NSM_FL_DataTableGUI.Columns[0].ReadOnly = true;

            NSM_FL_DataTableGUI.Columns.Add("Values", typeof(double));

            ///<summary>
            ///Front Right Non Suspended Mass Data Table Initialization
            /// </summary>
            NSM_FR_DataTableGUI = new DataTable();

            NSM_FR_DataTableGUI.TableName = "Front Right Non Suspended Mass Parameters";

            NSM_FR_DataTableGUI.Columns.Add("Input Parameters", typeof(string));
            NSM_FR_DataTableGUI.Columns[0].ReadOnly = true;

            NSM_FR_DataTableGUI.Columns.Add("Values", typeof(double));

            ///<summary>
            ///Rear Left Non Suspended Mass Data Table Initialization
            /// </summary>
            NSM_RL_DataTableGUI = new DataTable();

            NSM_RL_DataTableGUI.TableName = "Rear Left Non Suspended Mass Parameters";

            NSM_RL_DataTableGUI.Columns.Add("Input Parameters", typeof(string));
            NSM_RL_DataTableGUI.Columns[0].ReadOnly = true;

            NSM_RL_DataTableGUI.Columns.Add("Values", typeof(double));

            ///<summary>
            ///Rear Right Non Suspended Mass Data Table Initialization
            /// </summary>
            NSM_RR_DataTableGUI = new DataTable();

            NSM_RR_DataTableGUI.TableName = "Rear Right Non Suspended Mass Parameters";

            NSM_RR_DataTableGUI.Columns.Add("Input Parameters", typeof(string));
            NSM_RR_DataTableGUI.Columns[0].ReadOnly = true;

            NSM_RR_DataTableGUI.Columns.Add("Values", typeof(double));

            ///<summary>
            ///Suspended Mass Data Table Initialization
            /// </summary>
            ///
            SuspendedMass_DataTableGUI = new DataTable();

            SuspendedMass_DataTableGUI.TableName = "Suspended Mass Parameters";

            SuspendedMass_DataTableGUI.Columns.Add("Input Parameters", typeof(string));
            SuspendedMass_DataTableGUI.Columns[0].ReadOnly = true;

            SuspendedMass_DataTableGUI.Columns.Add("Values", typeof(double));

            ///<summary>
            ///Front Left Bearing Coordinates Data Table Initialization
            /// </summary>
            FL_Bearing_DataTable_GUI = new DataTable();

            FL_Bearing_DataTable_GUI.TableName = "Front Left Bearing Attachment Points";

            FL_Bearing_DataTable_GUI.Columns.Add("Attachment Point", typeof(string));
            FL_Bearing_DataTable_GUI.Columns[0].ReadOnly = true;

            FL_Bearing_DataTable_GUI.Columns.Add("X (mm)", typeof(double));
            FL_Bearing_DataTable_GUI.Columns.Add("Y (mm)", typeof(double));
            FL_Bearing_DataTable_GUI.Columns.Add("Z (mm)", typeof(double));

            ///<summary>
            ///Front Right Bearing Coordinates Data Table Initialization
            /// </summary>
            FR_Bearing_DataTable_GUI = new DataTable();

            FR_Bearing_DataTable_GUI.TableName = "Front Right Bearing Attachment Points";

            FR_Bearing_DataTable_GUI.Columns.Add("Attachment Point", typeof(string));
            FR_Bearing_DataTable_GUI.Columns[0].ReadOnly = true;

            FR_Bearing_DataTable_GUI.Columns.Add("X (mm)", typeof(double));
            FR_Bearing_DataTable_GUI.Columns.Add("Y (mm)", typeof(double));
            FR_Bearing_DataTable_GUI.Columns.Add("Z (mm)", typeof(double));

            ///<summary>
            ///Rear Left Bearing Coordinates Data Table Initialization
            /// </summary>
            RL_Bearing_DataTable_GUI = new DataTable();

            RL_Bearing_DataTable_GUI.TableName = "Rear Left Bearing Attachment Points";

            RL_Bearing_DataTable_GUI.Columns.Add("Attachment Point", typeof(string));
            RL_Bearing_DataTable_GUI.Columns[0].ReadOnly = true;

            RL_Bearing_DataTable_GUI.Columns.Add("X (mm)", typeof(double));
            RL_Bearing_DataTable_GUI.Columns.Add("Y (mm)", typeof(double));
            RL_Bearing_DataTable_GUI.Columns.Add("Z (mm)", typeof(double));

            ///<summary>
            ///Rear Right Bearing Coordinates Data Table Initialization
            /// </summary>
            RR_Bearing_DataTable_GUI = new DataTable();

            RR_Bearing_DataTable_GUI.TableName = "Rear Right Bearing Attachment Points";

            RR_Bearing_DataTable_GUI.Columns.Add("Attachment Point", typeof(string));
            RR_Bearing_DataTable_GUI.Columns[0].ReadOnly = true;

            RR_Bearing_DataTable_GUI.Columns.Add("X (mm)", typeof(double));
            RR_Bearing_DataTable_GUI.Columns.Add("Y (mm)", typeof(double));
            RR_Bearing_DataTable_GUI.Columns.Add("Z (mm)", typeof(double));

            ///<summary>
            ///Steering Column Bearing Coordinate Data Table Initialization
            /// </summary>
            SteeringColumnBearing_DataTable_GUI = new DataTable();

            SteeringColumnBearing_DataTable_GUI.TableName = "Steering Column Bearing Attachment Points";

            SteeringColumnBearing_DataTable_GUI.Columns.Add("Attachment Point", typeof(string));
            SteeringColumnBearing_DataTable_GUI.Columns[0].ReadOnly = true;

            SteeringColumnBearing_DataTable_GUI.Columns.Add("X (mm)", typeof(double));
            SteeringColumnBearing_DataTable_GUI.Columns.Add("Y (mm)", typeof(double));
            SteeringColumnBearing_DataTable_GUI.Columns.Add("Z (mm)", typeof(double));

            #endregion

            _LoadCaseName      = _loadCaseName;
            _LoadCaseID        = _loadCaseID;
            navBarItemLoadCase = new CusNavBarItem(_LoadCaseName, _LoadCaseID + 1, this);
            TabPage_LC         = CustomXtraTabPage.CreateNewTabPage_ForInputs(_LoadCaseName, _LoadCaseID + 1);
        }
        /// <summary>
        /// Method to add <see cref="TabPage"/>s to the <see cref="TabControl"/> using a single <see cref="TabPage"/>
        /// </summary>
        /// <param name="_xtraTabControl"></param>
        /// <param name="_xtraTabPage"></param>
        /// <returns></returns>
        public static CustomXtraTabControl AddTabPages(CustomXtraTabControl _xtraTabControl, CustomXtraTabPage _xtraTabPage)
        {
            _xtraTabControl.Dock = DockStyle.Fill;
            _xtraTabControl.TabPages.Add(_xtraTabPage);

            return(_xtraTabControl);
        }
예제 #23
0
        public SuspensionCoordinatesRearGUI(SerializationInfo info, StreamingContext context)
        {
            #region De-serialization of the Coordinates
            A1x = (double)info.GetValue("A1x_RL", typeof(double));
            A1y = (double)info.GetValue("A1y_RL", typeof(double));
            A1z = (double)info.GetValue("A1z_RL", typeof(double));

            B1x = (double)info.GetValue("B1x_RL", typeof(double));
            B1y = (double)info.GetValue("B1y_RL", typeof(double));
            B1z = (double)info.GetValue("B1z_RL", typeof(double));

            C1x = (double)info.GetValue("C1x_RL", typeof(double));
            C1y = (double)info.GetValue("C1y_RL", typeof(double));
            C1z = (double)info.GetValue("C1z_RL", typeof(double));

            D1x = (double)info.GetValue("D1x_RL", typeof(double));
            D1y = (double)info.GetValue("D1y_RL", typeof(double));
            D1z = (double)info.GetValue("D1z_RL", typeof(double));

            E1x = (double)info.GetValue("E1x_RL", typeof(double));
            E1y = (double)info.GetValue("E1y_RL", typeof(double));
            E1z = (double)info.GetValue("E1z_RL", typeof(double));

            F1x = (double)info.GetValue("F1x_RL", typeof(double));
            F1y = (double)info.GetValue("F1y_RL", typeof(double));
            F1z = (double)info.GetValue("F1z_RL", typeof(double));

            G1x = (double)info.GetValue("G1x_RL", typeof(double));
            G1y = (double)info.GetValue("G1y_RL", typeof(double));
            G1z = (double)info.GetValue("G1z_RL", typeof(double));

            H1x = (double)info.GetValue("H1x_RL", typeof(double));
            H1y = (double)info.GetValue("H1y_RL", typeof(double));
            H1z = (double)info.GetValue("H1z_RL", typeof(double));

            I1x = (double)info.GetValue("I1x_RL", typeof(double));
            I1y = (double)info.GetValue("I1y_RL", typeof(double));
            I1z = (double)info.GetValue("I1z_RL", typeof(double));

            J1x = (double)info.GetValue("J1x_RL", typeof(double));
            J1y = (double)info.GetValue("J1y_RL", typeof(double));
            J1z = (double)info.GetValue("J1z_RL", typeof(double));

            JO1x = (double)info.GetValue("JO1x_RL", typeof(double));
            JO1y = (double)info.GetValue("JO1y_RL", typeof(double));
            JO1z = (double)info.GetValue("JO1z_RL", typeof(double));

            K1x = (double)info.GetValue("K1x_RL", typeof(double));
            K1y = (double)info.GetValue("K1y_RL", typeof(double));
            K1z = (double)info.GetValue("K1z_RL", typeof(double));

            M1x = (double)info.GetValue("M1x_RL", typeof(double));
            M1y = (double)info.GetValue("M1y_RL", typeof(double));
            M1z = (double)info.GetValue("M1z_RL", typeof(double));

            N1x = (double)info.GetValue("N1x_RL", typeof(double));
            N1y = (double)info.GetValue("N1y_RL", typeof(double));
            N1z = (double)info.GetValue("N1z_RL", typeof(double));

            O1x = (double)info.GetValue("O1x_RL", typeof(double));
            O1y = (double)info.GetValue("O1y_RL", typeof(double));
            O1z = (double)info.GetValue("O1z_RL", typeof(double));

            P1x = (double)info.GetValue("P1x_RL", typeof(double));
            P1y = (double)info.GetValue("P1y_RL", typeof(double));
            P1z = (double)info.GetValue("P1z_RL", typeof(double));

            Q1x = (double)info.GetValue("Q1x_RL", typeof(double));
            Q1y = (double)info.GetValue("Q1y_RL", typeof(double));
            Q1z = (double)info.GetValue("Q1z_RL", typeof(double));

            R1x = (double)info.GetValue("R1x_RL", typeof(double));
            R1y = (double)info.GetValue("R1y_RL", typeof(double));
            R1z = (double)info.GetValue("R1z_RL", typeof(double));

            W1x = (double)info.GetValue("W1x_RL", typeof(double));
            W1y = (double)info.GetValue("W1y_RL", typeof(double));
            W1z = (double)info.GetValue("W1z_RL", typeof(double));

            RideHeightRefx = (double)info.GetValue("RideHeightRefx_RL", typeof(double));
            RideHeightRefy = (double)info.GetValue("RideHeightRefy_RL", typeof(double));
            RideHeightRefz = (double)info.GetValue("RideHeightRefz_RL", typeof(double));
            #endregion

            #region De-serialization of the Suspension Type Varibales
            RearSymmetryGUI = (bool)info.GetValue("RearSymmetry", typeof(bool));
            DoubleWishboneIdentifierRear = (int)info.GetValue("DoubleWishbone_Identifier_Rear", typeof(int));
            McPhersonIdentifierRear      = (int)info.GetValue("McPherson_Identifier_Rear", typeof(int));
            PushrodIdentifierRear        = (int)info.GetValue("Pushrod_Identifier_Rear", typeof(int));
            PullrodIdentifierRear        = (int)info.GetValue("Pullrod_Identifier_Rear", typeof(int));
            UARBIdentifierRear           = (int)info.GetValue("UARB_Identifier_Rear", typeof(int));
            TARBIdentifierRear           = (int)info.GetValue("TARB_Identifier_Rear", typeof(int));
            #endregion

            #region De-erialization of the SCRL Data Table
            SCRLDataTableGUI = (DataTable)info.GetValue("SCRLDataTable", typeof(DataTable));
            #endregion

            #region De-serialization of the TabPage
            TabPage_RearCAD = (CustomXtraTabPage)info.GetValue("RearCADTabPage", typeof(CustomXtraTabPage));
            #endregion
        }
        public SuspensionCoordinatesFrontGUI(SerializationInfo info, StreamingContext context)
        {
            #region De-serialization of the Coordinates
            A1x = (double)info.GetValue("A1x_FL", typeof(double));
            A1y = (double)info.GetValue("A1y_FL", typeof(double));
            A1z = (double)info.GetValue("A1z_FL", typeof(double));

            B1x = (double)info.GetValue("B1x_FL", typeof(double));
            B1y = (double)info.GetValue("B1y_FL", typeof(double));
            B1z = (double)info.GetValue("B1z_FL", typeof(double));

            C1x = (double)info.GetValue("C1x_FL", typeof(double));
            C1y = (double)info.GetValue("C1y_FL", typeof(double));
            C1z = (double)info.GetValue("C1z_FL", typeof(double));

            D1x = (double)info.GetValue("D1x_FL", typeof(double));
            D1y = (double)info.GetValue("D1y_FL", typeof(double));
            D1z = (double)info.GetValue("D1z_FL", typeof(double));

            E1x = (double)info.GetValue("E1x_FL", typeof(double));
            E1y = (double)info.GetValue("E1y_FL", typeof(double));
            E1z = (double)info.GetValue("E1z_FL", typeof(double));

            F1x = (double)info.GetValue("F1x_FL", typeof(double));
            F1y = (double)info.GetValue("F1y_FL", typeof(double));
            F1z = (double)info.GetValue("F1z_FL", typeof(double));

            G1x = (double)info.GetValue("G1x_FL", typeof(double));
            G1y = (double)info.GetValue("G1y_FL", typeof(double));
            G1z = (double)info.GetValue("G1z_FL", typeof(double));

            H1x = (double)info.GetValue("H1x_FL", typeof(double));
            H1y = (double)info.GetValue("H1y_FL", typeof(double));
            H1z = (double)info.GetValue("H1z_FL", typeof(double));

            I1x = (double)info.GetValue("I1x_FL", typeof(double));
            I1y = (double)info.GetValue("I1y_FL", typeof(double));
            I1z = (double)info.GetValue("I1z_FL", typeof(double));

            J1x = (double)info.GetValue("J1x_FL", typeof(double));
            J1y = (double)info.GetValue("J1y_FL", typeof(double));
            J1z = (double)info.GetValue("J1z_FL", typeof(double));

            JO1x = (double)info.GetValue("JO1x_FL", typeof(double));
            JO1y = (double)info.GetValue("JO1y_FL", typeof(double));
            JO1z = (double)info.GetValue("JO1z_FL", typeof(double));

            K1x = (double)info.GetValue("K1x_FL", typeof(double));
            K1y = (double)info.GetValue("K1y_FL", typeof(double));
            K1z = (double)info.GetValue("K1z_FL", typeof(double));

            M1x = (double)info.GetValue("M1x_FL", typeof(double));
            M1y = (double)info.GetValue("M1y_FL", typeof(double));
            M1z = (double)info.GetValue("M1z_FL", typeof(double));

            N1x = (double)info.GetValue("N1x_FL", typeof(double));
            N1y = (double)info.GetValue("N1y_FL", typeof(double));
            N1z = (double)info.GetValue("N1z_FL", typeof(double));

            Pin1x = (double)info.GetValue("Pin1x_FL", typeof(double));
            Pin1y = (double)info.GetValue("Pin1y_FL", typeof(double));
            Pin1z = (double)info.GetValue("Pin1z_FL", typeof(double));

            UV2x = (double)info.GetValue("UV2x_FL", typeof(double));
            UV2y = (double)info.GetValue("UV2y_FL", typeof(double));
            UV2z = (double)info.GetValue("UV2z_FL", typeof(double));

            UV1x = (double)info.GetValue("UV1x_FL", typeof(double));
            UV1y = (double)info.GetValue("UV1y_FL", typeof(double));
            UV1z = (double)info.GetValue("UV1z_FL", typeof(double));

            STC1x = (double)info.GetValue("STC1x_FL", typeof(double));
            STC1y = (double)info.GetValue("STC1y_FL", typeof(double));
            STC1z = (double)info.GetValue("STC1z_FL", typeof(double));

            O1x = (double)info.GetValue("O1x_FL", typeof(double));
            O1y = (double)info.GetValue("O1y_FL", typeof(double));
            O1z = (double)info.GetValue("O1z_FL", typeof(double));

            P1x = (double)info.GetValue("P1x_FL", typeof(double));
            P1y = (double)info.GetValue("P1y_FL", typeof(double));
            P1z = (double)info.GetValue("P1z_FL", typeof(double));

            Q1x = (double)info.GetValue("Q1x_FL", typeof(double));
            Q1y = (double)info.GetValue("Q1y_FL", typeof(double));
            Q1z = (double)info.GetValue("Q1z_FL", typeof(double));

            R1x = (double)info.GetValue("R1x_FL", typeof(double));
            R1y = (double)info.GetValue("R1y_FL", typeof(double));
            R1z = (double)info.GetValue("R1z_FL", typeof(double));

            W1x = (double)info.GetValue("W1x_FL", typeof(double));
            W1y = (double)info.GetValue("W1y_FL", typeof(double));
            W1z = (double)info.GetValue("W1z_FL", typeof(double));

            RideHeightRefx = (double)info.GetValue("RideHeightRefx_FL", typeof(double));
            RideHeightRefy = (double)info.GetValue("RideHeightRefy_FL", typeof(double));
            RideHeightRefz = (double)info.GetValue("RideHeightRefz_FL", typeof(double));
            #endregion

            #region De-serialization of the Suspension Type Varibales
            FrontSymmetryGUI = (bool)info.GetValue("FrontSymmetry", typeof(bool));
            DoubleWishboneIdentifierFront = (int)info.GetValue("DoubleWishbone_Identifier_Front", typeof(int));
            McPhersonIdentifierFront      = (int)info.GetValue("McPherson_Identifier_Front", typeof(int));
            PushrodIdentifierFront        = (int)info.GetValue("Pushrod_Identifier_Front", typeof(int));
            PullrodIdentifierFront        = (int)info.GetValue("Pullrod_Identifier_Front", typeof(int));
            UARBIdentifierFront           = (int)info.GetValue("UARB_Identifier_Front", typeof(int));
            TARBIdentifierFront           = (int)info.GetValue("TARB_Identifier_Front", typeof(int));
            NoOfCouplings = (int)info.GetValue("NoOfCouplings", typeof(int));
            #endregion

            SuspensionMotionExists = (bool)info.GetValue("SuspensionMotionExists", typeof(bool));

            #region De-serialization of the Input Origin
            _InputOriginX = (double)info.GetValue("_InputOriginX", typeof(double));
            _InputOriginY = (double)info.GetValue("_InputOriginY", typeof(double));
            _InputOriginZ = (double)info.GetValue("_InputOriginZ", typeof(double));
            #endregion

            #region De-serialization of the SCFLGUI DataTable
            SCFLDataTableGUI = (DataTable)info.GetValue("SCFLDataTable", typeof(DataTable));
            #endregion

            #region De-serialization of the TabPage
            TabPage_FrontCAD = (CustomXtraTabPage)info.GetValue("FrontCADTabPage", typeof(CustomXtraTabPage));
            #endregion
        }