示例#1
0
        private void Edit(object sender, RoutedEventArgs e)
        {
            EditSchedule editSchedule = new EditSchedule();
            bool?        result       = editSchedule.ShowDialog();

            if (result != false)
            {
                nanny.WorkHours = editSchedule.MyDictionary;
            }
        }
示例#2
0
        // 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
            }
        }