private void Edit_Click(object sender, RoutedEventArgs e)
        {
            AvailableTime availableTime = new AvailableTime();
            bool?         result        = availableTime.ShowDialog();

            if (result != false)
            {
                mother.Workhours = availableTime.Mystuff;
            }
        }
예제 #2
0
        private void Edit_Click(object sender, RoutedEventArgs e)
        {
            AvailableTime availableTime = new AvailableTime(nanny.AvailableTime);
            bool?         result        = availableTime.ShowDialog();

            if (result != false)
            {
                nanny.AvailableTime = availableTime.Mystuff;
            }
        }