public static void GetSelectedAsyc(string[] options, SelectedOptionsChanged callback)
 {
     CheckboxListSelector cls = new CheckboxListSelector();
     cls.checkedListBox1.Items.AddRange(options);
     cls.QSelect.AutoCompleteCustomSource.AddRange(options);
     cls.opts = options;
     cls.Show();
     cls.OptionsChanged += callback;
 }
 public static int[] GetSelected(string[] options)
 {
     CheckboxListSelector cls = new CheckboxListSelector();
     cls.checkedListBox1.Items.AddRange(options);
     cls.ShowDialog();
     int[] re;
     re = new int[cls.checkedListBox1.CheckedIndices.Count];
     for (int i = 0; i < cls.checkedListBox1.CheckedIndices.Count; i++)
     {
         re[i] = cls.checkedListBox1.CheckedIndices[i];
     }
     return re;
 }