} // This constructor is created here only so that the Vehicle object can be initialized without having to pass any arguments. // This is needed because otherwise the Vehicle object will not be instantiated untill a Vehicle item is created. // If the user wants to save the file without creating a Vehicle object he will not be able to do so unless this constructor is used to create the Vehicle object public VehicleGUI(Kinematics_Software_New _r1, VehicleVisualizationType _vVisualizationType) { r1 = _r1; //IS.Kinematics_Software_New_ObjectInitializer(r1); ProgressBarVehicleGUI = r1.progressBar; //Vehicle_MotionExists = Vehicle.List_Vehicle[Vehicle.VehicleCounter].sc_FL.SuspensionMotionExists; IndexOfOutput = 0; ///<summary>Constructing the <see cref="CAD"/> usercontrol here to prevent overcrowding the memory by initializing the controls in the declaration itself</summary> if (_vVisualizationType == VehicleVisualizationType.Generic) { CADVehicleInputs = new CAD(); CadIsTobeImported = false; VisualizationType = VehicleVisualizationType.Generic; } else if (_vVisualizationType == VehicleVisualizationType.ImportedCAD) { importCADForm = new XUC_ImportCAD(); CadIsTobeImported = true; VisualizationType = VehicleVisualizationType.ImportedCAD; } ocGUI_FL = new OutputClassGUI(); ocGUI_FR = new OutputClassGUI(); ocGUI_RL = new OutputClassGUI(); ocGUI_RR = new OutputClassGUI(); }
/// <summary> /// Method to get the Object of the Data Which owns /// </summary> public void GetParentObject(object _parentObject) { importCAD = _parentObject as XUC_ImportCAD; //importCAD.importCADViewport.DictionaryOfSusCoordinates_InitializeDictionary_Invoker(listBoxControlSusCoordinatesInboard, listBoxControlSusCoordinatesOutboard); }