public string GetGraphizString(IScheduleNode node) { switch (node) { case StockExchangeProvider t1: return(GetGraphizString(t1)); case PurchaseOrderPart t2: return(GetGraphizString(t2)); case ProductionOrder t3: return(GetGraphizString(t3)); case ProductionOrderOperation t4: return(GetGraphizString(t4)); case StockExchangeDemand t5: return(GetGraphizString(t5)); case ProductionOrderBom t6: return(GetGraphizString(t6)); case CustomerOrderPart t7: return(GetGraphizString(t7)); case Node t8: throw new MrpRunException("Call getEntity() before calling this method."); default: return(node.ToString()); } }
public override string ToString() { return($"{_entity.ToString()}"); }