private CommitOrCancelChanges ( bool commitChanges ) : void | ||
commitChanges | bool | |
return | void |
private void CommitOrCancelChanges(bool commitChanges)
{
// Close the dropdown and commit the selection if requested.
if (commitChanges)
{
DiscardCachedSelectedItem();
}
else
{
RestoreCachedSelectedItem();
}
SelectedItemUpdated();
}