private void Edit(object sender, RoutedEventArgs e) { EditSchedule editSchedule = new EditSchedule(); bool? result = editSchedule.ShowDialog(); if (result != false) { nanny.WorkHours = editSchedule.MyDictionary; } }
// Enables filling a schedule that the mother wants to hire the nanny private void Edit(object sender, RoutedEventArgs e) { EditSchedule editSchedule = new EditSchedule(); bool? result = editSchedule.ShowDialog(); if (result != false) { mother.HoursNeed = editSchedule.MyDictionary;//read the details to the mother schedule } }