private static bool ShouldUpdateCell(PriceTileStatus status, IPriceTileCell cell) { switch (status) { case PriceTileStatus.Done: case PriceTileStatus.DoneStale: if (cell is PriceTileTradeAffirmationViewCell) { return true; } break; case PriceTileStatus.Streaming: case PriceTileStatus.Executing: if (cell is PriceTileViewCell) { return true; } break; case PriceTileStatus.Stale: if (cell is PriceTileErrorViewCell) { return true; } break; } return false; }
private static bool ShouldUpdateCell(PriceTileStatus status, IPriceTileCell cell) { switch (status) { case PriceTileStatus.Done: case PriceTileStatus.DoneStale: if (cell is PriceTileTradeAffirmationViewCell) { return(true); } break; case PriceTileStatus.Streaming: case PriceTileStatus.Executing: if (cell is PriceTileViewCell) { return(true); } break; case PriceTileStatus.Stale: if (cell is PriceTileErrorViewCell) { return(true); } break; } return(false); }