Skip to content

Instantly share code, notes, and snippets.

@c4tachan
Created June 12, 2015 18:39
Show Gist options
  • Save c4tachan/210ea405d6662c41aea4 to your computer and use it in GitHub Desktop.
Save c4tachan/210ea405d6662c41aea4 to your computer and use it in GitHub Desktop.
New Algorithm
const vector<CaseItem> vCases = ((eLoginMode == LoginContinueCase) ? GetContinuableCases()
/*else if*/ : ((eLoginMode == LoginNewCase) ? LoginDialog::GetCaseManager().GetPreOpCases()
/*else if*/ : ((eLoginMode == LoginReviewCase) ? GetReviewableCases()
/*else if*/ : ((eLoginMode == LoginAmendCase) ? GetAmendableCases()
/*else*/ : vector<CaseItem>()))));
if (Row < vCases.size())
{
if (LoginDialog::GetSelectedCase() == vCases[Row].strCaseName)
{
LoginDialog::SelectCase(EMPTY_STRING);
}
else
{
LoginDialog::SelectCase(vCases[Row].strCaseName);
}
m_cGrid.Invalidate();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment