/// <summary> /// Removes the load data for the analysis case. /// This method should be used when removing multiple loads to reduce API calls to the application. /// </summary> /// <param name="loads">The loads.</param> public void RemoveLoads(LoadPatternTuples loads) { foreach (var load in loads) { Loads.Remove(load); } }
/// <summary> /// Initializes a new instance of the <see cref="LoadsAppliedHelper" /> class. /// </summary> /// <param name="caseName">Name of the case.</param> /// <param name="loadPatterns">The load patterns.</param> /// <param name="loads">The loads.</param> internal LoadsAppliedHelper(string caseName, LoadPatterns loadPatterns, LoadPatternTuples loads = null) { _loadPatterns = loadPatterns; CaseName = caseName; Loads = loads; }
/// <summary> /// Adds the load data for the analysis case. /// This method should be used when adding multiple loads to reduce API calls to the application. /// </summary> /// <param name="loads">The loads.</param> public bool AddLoads(LoadPatternTuples loads) { return(Loads.AddUnique(loads)); }