예제 #1
0
파일: Zone.cs 프로젝트: windripple/popolo
 /// <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;
 }
예제 #2
0
파일: Zone.cs 프로젝트: windripple/popolo
 /// <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;
 }