Skip to content

Instantly share code, notes, and snippets.

@ksummerlin
Created June 28, 2012 15:02
Show Gist options
  • Save ksummerlin/3011865 to your computer and use it in GitHub Desktop.
Save ksummerlin/3011865 to your computer and use it in GitHub Desktop.
void FillOtherOrdersSection() {
GetOtherOrders(); //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.Count = 3) {
ShowViewAllOrdersLink();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment