/// <summary> /// Initializes a new instance of the <see cref="RuleBlockWizardDialog"/> class. /// </summary> /// <param name="fuzzyVariables">The fuzzy variables.</param> public RuleBlockWizardDialog(ObservableCollection <FuzzyVariableModel> fuzzyVariables) { InitializeComponent(); this.newRuleBlock = new RuleBlockModel(); this.fuzzyVariables = new ObservableCollection <FuzzyVariableModel>(fuzzyVariables.ToList()); this.listBoxVariablesCollection.Items.AddRange(this.fuzzyVariables.Select(p => p.Name).ToArray()); }