private void datalist_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     if (datalist.SelectedItem != null)
     {
         nanny                  = new BE.Nanny(datalist.SelectedItem as BE.Nanny);
         label.Content          = nanny.ToString();
         comboBox.DataContext   = nanny;
         RemoveButton.IsEnabled = true;
     }
 }
 private void nannyIDTextBox_MouseEnter(object sender, MouseEventArgs e)
 {
     if (nannyIDTextBox.SelectedIndex == -1)
     {
         nannyIDTextBox.ToolTip = "Choose a nanny (sorted by number of relevant hours available)";
     }
     else
     {
         Nanny n = MainWindow.bl.FindNannyByID(nannyIDTextBox.SelectedItem.ToString());
         nannyIDTextBox.ToolTip = n.ToString();
     }
 }
        private void iDTextBox_MouseEnter(object sender, MouseEventArgs e)
        { // this makes the tooltip show the nanny's "to string" details
            Nanny n = MainWindow.bl.FindNannyByID(iDTextBox.Text);

            iDTextBox.ToolTip = (n == null ? "new nanny" : n.ToString());
        }
 private void comboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     nanny                  = new BE.Nanny(comboBox.SelectedItem as BE.Nanny);
     label.Content          = nanny.ToString();
     RemoveButton.IsEnabled = true;
 }