private void SelectNodes() { foreach (KeyValuePair <string, object> keyValue in SelectedItems) { NodePaciente node = _nodeList.FirstOrDefault(i => i.Title == keyValue.Key); if (node != null) { node.IsSelected = true; } } }
private void DisplayInControl() { _nodeList.Clear(); if (this.ItemsSource.Count > 0) { _nodeList.Add(new NodePaciente("All")); } foreach (KeyValuePair <string, object> keyValue in this.ItemsSource) { NodePaciente node = new NodePaciente(keyValue.Key); _nodeList.Add(node); } MultiSelectComboPacient.ItemsSource = _nodeList; }
private void DisplayInControl() { _nodeList.Clear(); if (this.ItemsSource.Count > 0) _nodeList.Add(new NodePaciente("All")); foreach (KeyValuePair<string, object> keyValue in this.ItemsSource) { NodePaciente node = new NodePaciente(keyValue.Key); _nodeList.Add(node); } MultiSelectComboPacient.ItemsSource = _nodeList; }