Exemple #1
0
 /// <summary>
 /// 关门
 /// </summary>
 /// <returns></returns>
 public void CloseDoor()
 {
     if (this.DoorStatus != DoorStatus.关闭)
     {
         if (this.GetPutType == GetPutType.烤箱)
         {
             Floor floor = Floor.FloorList.First(f => f.StationIds.Contains(this.Id.ToString()));
             Oven  oven  = Oven.OvenList.First(o => o.Id == floor.OvenId);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// 开门
 /// </summary>
 /// <returns></returns>
 public void OpenDoor()
 {
     if (this.DoorStatus != DoorStatus.打开)
     {
         if (this.GetPutType == GetPutType.烤箱)
         {
             Floor floor = Floor.FloorList.First(f => f.StationIds.Contains(this.Id.ToString()));
             Oven  oven  = Oven.OvenList.First(o => o.Id == floor.OvenId);
             oven.OpenDoor(oven.Floors.IndexOf(floor));
         }
     }
 }