コード例 #1
0
        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;
            }
        }