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);
 }
        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);
        }