private void Button_OK_Click(object sender, RoutedEventArgs e) { Result = MessageBoxResult.OK; Close(); }