public void Remove() { manager.RemoveInterface(this); channel.interfaces.Remove(this); channel = null; }
public Shipment(LogisticManager destination, LogisticManager sender, LogisticChannel channel) { this.destination = destination; this.sender = sender; this.channel = channel; this.Status = ShipmentStatus.InCreation; this.id = sender.GetUniqueLoadID() + "_shipment" + sender.GetNextShipmentID(); }
protected LogisticInterface(LogisticChannel channel) { this.channel = channel; this.channel.interfaces.Add(this); }