public Simulation(string _simulationName, int _simulationID, Kinematics_Software_New _r1)
        {
            r1 = _r1;

            SimulationName       = _simulationName;
            navBarItemSimulation = new CusNavBarItem(_simulationName, _simulationID, this);
        }
        /// <summary>
        /// Method to Create the LinkClickedEvent of the Load Cases' NavBarItem
        /// </summary>
        /// <param name="_navBarItemLoadCase"></param>
        /// <param name="_r1"></param>
        /// <returns></returns>
        public CusNavBarItem LinkClickedEventCreator(CusNavBarItem _navBarItemLoadCase, Kinematics_Software_New _r1)
        {
            _navBarItemLoadCase.LinkClicked += _navBaritemLoadCase_LinkClicked;
            r1 = _r1;

            return(_navBarItemLoadCase);
        }
        public CusNavBarItem LinkClickedEventCreater(CusNavBarItem _navBaritemMotion, Kinematics_Software_New _r1)
        {
            _navBaritemMotion.LinkClicked += _navBaritemMotion_LinkClicked;
            r1 = _r1;

            return(_navBaritemMotion);
        }
        public CusNavBarItem LinkClickedEventCreator(CusNavBarItem _navBarItemResults, Kinematics_Software_New _r1)
        {
            _navBarItemResults.LinkClicked += new NavBarLinkEventHandler(navBarItemResults_LinkClicked);

            r1 = _r1;

            return(_navBarItemResults);
        }
 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);
 }
Beispiel #6
0
        /// <summary>
        /// Constructor
        /// </summary>
        public BatchRunGUI()
        {
            batchRun = new BatchRunForm();

            ID = Counter + 1;

            Name = "Batch Run " + ID;

            navBarItemBatchRun = new CusNavBarItem(Name, ID, this);
        }
        public Simulation(SerializationInfo info, StreamingContext context)
        {
            SimulationName    = (string)info.GetValue("SimulationName", typeof(string));
            SimulationCounter = (int)info.GetValue("SimulationCounter", typeof(int));

            List_Simulation     = (List <Simulation>)info.GetValue("List_Simulation", typeof(List <Simulation>));
            Simulation_Vehicle  = null;
            Simulation_Vehicle  = (Vehicle)info.GetValue("Simulation_Vehicle", typeof(Vehicle));
            Simulation_Motion   = (Motion)info.GetValue("Simulation_Motion", typeof(Motion));
            Simulation_LoadCase = (LoadCase)info.GetValue("Simulation_LoadCase", typeof(LoadCase));

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

            navBarItemSimulation = (CusNavBarItem)info.GetValue("navBarItemSimulation", typeof(CusNavBarItem));
        }
        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);
        }
Beispiel #9
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);
        }
        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
        }
        /// <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);
        }
Beispiel #12
0
        /// <summary>
        /// Method to initialize the Link Clicked event of the <see cref="NavBarItem"/>
        /// </summary>
        /// <param name="_navBaritemSetupChange"></param>
        /// <returns></returns>
        public CusNavBarItem LinkClickedEventCreator(CusNavBarItem _navBaritemSetupChange)
        {
            _navBaritemSetupChange.LinkClicked += _navBaritemSetupChange_LinkClicked;

            return(_navBaritemSetupChange);
        }
        public void CreateNavBarItem(CusNavBarItem _navBarItem, NavBarGroup _navBarGroup, NavBarControl _navBarControl)
        {
            _navBarControl.Items.Add(_navBarItem);

            _navBarGroup.ItemLinks.Add(_navBarItem);
        }
 public CusNavBarItem LinkClickedEventCreater(CusNavBarItem _navBarItem, Kinematics_Software_New _r1)
 {
     r1 = _r1;
     _navBarItem.LinkClicked += _navBarItem_LinkClicked;
     return(_navBarItem);
 }