private void Edit_Click(object sender, RoutedEventArgs e) { AvailableTime availableTime = new AvailableTime(); bool? result = availableTime.ShowDialog(); if (result != false) { mother.Workhours = availableTime.Mystuff; } }
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; } }