Example #1
0
 public AddNogoodDialog(ProblemEditor editor)
 {
     Editor = editor;
     InitializeComponent();
     variablesListBox.DataSource    = Problem.Variables.Select(pair => pair.Value).ToArray();
     variablesListBox.DisplayMember = "NameAndValue";
 }
Example #2
0
 public AddVariableDialog(ProblemEditor editor)
 {
     InitializeComponent();
     Editor = editor;
     domainComboBox.AutoCompleteCustomSource.AddRange(Problem.Domains.Select(pair => pair.Key).ToArray());
     conditionVarComboBox.AutoCompleteCustomSource.AddRange(Problem.Variables.Select(pair => pair.Key).ToArray());
 }