Created
June 28, 2012 17:20
-
-
Save ksummerlin/3012640 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void FillOtherOrdersSection(int maxOtherOrders) { | |
GetOtherOrders(maxOtherOrders); //Calls stored procedure to fill _otherOrders | |
foreach (var otherOrder in _otherOrders) { | |
if (string.IsNullOrEmpty(otherOrder.Status)) { | |
status = ""; | |
} else { | |
status = " - " + otherOrder.Status; | |
} | |
MakeOrderLink(otherOrder); | |
} | |
if (_otherOrders.Count == 0) { | |
ShowNoOtherOrdersLink(); | |
} | |
else if (_otherOrders[0].OtherOrdersCount > maxOtherOrders) { | |
ShowViewAllOrdersLink(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment