/// <summary>発熱要素を削除する</summary> /// <param name="heatGain">削除する発熱要素</param> /// <returns>削除成功の真偽</returns> public bool RemoveHeatGain(IHeatGain heatGain) { if (this.heatGains.Contains(heatGain)) { this.heatGains.Remove(heatGain); return true; } else return false; }
/// <summary>発熱要素を追加する</summary> /// <param name="heatGain">発熱要素</param> /// <returns>追加成功の真偽</returns> public bool AddHeatGain(IHeatGain heatGain) { if (!this.heatGains.Contains(heatGain)) { heatGains.Add(heatGain); return true; } else return false; }