public AddNogoodDialog(ProblemEditor editor) { Editor = editor; InitializeComponent(); variablesListBox.DataSource = Problem.Variables.Select(pair => pair.Value).ToArray(); variablesListBox.DisplayMember = "NameAndValue"; }
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()); }