private void cancel_button_Click(object sender, RoutedEventArgs e) { pathselected = string.Empty; this.Close(); } }