コード例 #1
0
 private void addChildTab_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     comboBoxMom.ItemsSource       = bl.getAllMothers();
     comboBoxMom.DisplayMemberPath = "fullName";
     comboBoxMom.SelectedIndex     = -1;
     child                   = new BE.Child();
     child.birthdayKid       = new DateTime(1990, 1, 1);
     addChildTab.DataContext = child;
 }
コード例 #2
0
 private void updateMomTab_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (motherUpdateCombo.SelectedIndex == -1)
     {
         motherUpdateCombo.ItemsSource       = bl.getAllMothers();
         motherUpdateCombo.DisplayMemberPath = "fullName";
         motherUpdateCombo.SelectedIndex     = -1;
     }
 }
コード例 #3
0
 private void dataChildTab_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (comboBoxChildByMom.SelectedIndex == -1)
     {
         comboBoxChildByMom.ItemsSource       = bl.getAllMothers();
         comboBoxChildByMom.DisplayMemberPath = "fullName";
         comboBoxChildByMom.SelectedValuePath = "IdMom";
         comboBoxChildByMom.SelectedIndex     = -1;
     }
 }
コード例 #4
0
 private void addContractTab_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     try
     {
         if (comboBoxChooseChild.SelectedIndex == -1)
         {
             comboBoxChooseMom.ItemsSource       = bl.getAllMothers();
             comboBoxChooseMom.DisplayMemberPath = "fullName";
             comboBoxChooseMom.SelectedValuePath = "IdMom";
             comboBoxChooseMom.SelectedIndex     = -1;
         }
     }
     catch (Exception n)
     {
         MessageBox.Show(n.Message);
     }
 }