Ejemplo n.º 1
0
 private void ChildrenListButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         this.listTextBlock.Text = "Children";
         ListUserControl uc = new ListUserControl();
         uc.Source         = (bl.getChildrenList());
         this.page.Content = uc;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 2
0
 private void NanniesWithOver5YearsExperienceButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         this.listTextBlock.Text = "Nannies With Over 5 Years Experienc";
         ListUserControl uc = new ListUserControl();
         //the second parameter true means group by max age
         uc.Source         = (bl.listOfNannyWithOver5yearsExperience());
         this.page.Content = uc;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 3
0
 private void ContractsExpireInLessThanMonthButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         this.listTextBlock.Text = "Contracts Expire In Less Than Month";
         ListUserControl uc = new ListUserControl();
         //the second parameter true means group by max age
         uc.Source         = (bl.contratExpireInLessThanMonth());
         this.page.Content = uc;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }