/// <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); } } }
/// <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)); } } }