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; }
private void updateMomTab_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { if (motherUpdateCombo.SelectedIndex == -1) { motherUpdateCombo.ItemsSource = bl.getAllMothers(); motherUpdateCombo.DisplayMemberPath = "fullName"; motherUpdateCombo.SelectedIndex = -1; } }
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; } }
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); } }