Exemplo n.º 1
0
 public bool? PopupSingleSelectDialog(string title, string fieldName, IEnumerable<string> options, FieldReference<string> selection)
 {
     bool? result = false;
     this.Dispatcher.Invoke(() =>
     {
         var selectWindow = new SingleSelectWindow(null, title, fieldName, options, selection);
         result = selectWindow.ShowDialog();
     });
     return result;
 }
 public WindowResult StartSingleSelect(String title, String fieldName, IEnumerable<String> selectItems)
 {
     WindowResult result = null;
     this.Dispatcher.Invoke(() =>
     {
         result = new SingleSelectWindow(title, fieldName, selectItems).ReceiveUserSelect();
     });
     return result;
 }