示例#1
0
 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;
         }
     }
 }
示例#2
0
 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;
 }