Beispiel #1
0
 private void dataContractTab_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (comboBoxContractByNanny.SelectedIndex == -1)
     {
         comboBoxContractByNanny.ItemsSource       = bl.getAllNanny();
         comboBoxContractByNanny.DisplayMemberPath = "fullName";
         comboBoxContractByNanny.SelectedValuePath = "IdMom";
         comboBoxContractByNanny.SelectedIndex     = -1;
     }
     if (comboBoxContractByMom.SelectedIndex == -1)
     {
         comboBoxContractByMom.ItemsSource       = bl.getAllMothers();
         comboBoxContractByMom.DisplayMemberPath = "fullName";
         comboBoxContractByMom.SelectedValuePath = "IdMom";
         comboBoxContractByMom.SelectedIndex     = -1;
     }
 }