private static MerchantTribe.Shipping.FedEx.FedExRateServices.DropoffType GetDropOffType(DropOffType dropType) { DropoffType result = DropoffType.BUSINESS_SERVICE_CENTER; switch (dropType) { case DropOffType.BUSINESSSERVICECENTER: return(DropoffType.BUSINESS_SERVICE_CENTER); case DropOffType.DROPBOX: return(DropoffType.DROP_BOX); case DropOffType.REGULARPICKUP: return(DropoffType.REGULAR_PICKUP); case DropOffType.REQUESTCOURIER: return(DropoffType.REQUEST_COURIER); case DropOffType.STATION: return(DropoffType.STATION); } return(result); }
private Rectangle GetStoreSlot(DropoffType dropoffType) { int i = -1; int j = -1; switch (dropoffType) { case DropoffType.Dropoff_Health_Low: i = 3; j = 0; break; case DropoffType.Dropoff_Food_Low: i = 1; j = 0; break; case DropoffType.Dropoff_Water_Low: i = 2; j = 0; break; case DropoffType.Dropoff_Temperature_Low: i = 0; j = 0; break; case DropoffType.Dropoff_Health_Medium: i = 3; j = 1; break; case DropoffType.Dropoff_Food_Medium: i = 1; j = 1; break; case DropoffType.Dropoff_Water_Medium: i = 2; j = 1; break; case DropoffType.Dropoff_Temperature_Medium: i = 0; j = 1; break; case DropoffType.Dropoff_Health_High: i = 3; j = 2; break; case DropoffType.Dropoff_Food_High: i = 1; j = 2; break; case DropoffType.Dropoff_Water_High: i = 2; j = 2; break; case DropoffType.Dropoff_Temperature_High: i = 0; j = 2; break; default: break; } return new Rectangle(uiOffset + 130 + 2 +((34 + 25) * i), 393 + 2 + ((34 + 16)* j), 32, 31); }