// public virtual void ChangeOrder(OrderStatus order, OrderNumber number = OrderNumber.ONE) // 命令の変更を行います public virtual void ChangeOrder(OrderStatus order) { // 命令のあるオーダー番号の捜索 OrderNumber number = OrderNumber.ONE; if (m_OrderList.IsOrder(OrderNumber.TWO, order)) { number = OrderNumber.TWO; } else if (m_OrderList.IsOrder(OrderNumber.THREE, order)) { number = OrderNumber.THREE; } // 変更 Change(order, number, OrderDirection.NULL, 0); }