Created
February 17, 2011 01:28
-
-
Save mgroves/830737 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| private bool customPref_PreferenceClick(Preference preference) | |
| { | |
| IEnumerable<char>[] stockItemsDisplay = _stockItemsConfig.OrderBy(i => i.StockDataItem).Select(i => i.StockDataItem.GetStringValue()).ToArray(); | |
| bool[] allitemschecked = _stockItemsConfig.OrderBy(i => i.StockDataItem).Select(i => i.IsChecked).ToArray(); | |
| var dialog = new AlertDialog.Builder(this); | |
| dialog.SetMultiChoiceItems(stockItemsDisplay, allitemschecked, clickCallback); | |
| dialog.SetTitle("Select columns"); | |
| dialog.SetPositiveButton("Save", saveCallback); | |
| dialog.Create().Show(); | |
| return true; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment