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)); }
/// <summary> /// Method to determine which <see cref="BatchRunResults"/> object is to be used by THIS <see cref="HeatMapControl"/> /// </summary> /// <param name="_loadCase"></param> /// <returns></returns> private BatchRunResults AssignBatchRunResults(LoadCase _loadCase) { if (CornerIdentifier == 1) { return(_loadCase.runResults_FL); } else if (CornerIdentifier == 2) { return(_loadCase.runResults_FR); } else if (CornerIdentifier == 3) { return(_loadCase.runResults_RL); } else if (CornerIdentifier == 4) { return(_loadCase.runResults_RR); } else { return(null); } }