private void PickDirectoryCommand_OnExecuted(object sender, ExecutedRoutedEventArgs e) { FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); var result = folderBrowserDialog.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { musicDirectory = new MusicDirectory(folderBrowserDialog.SelectedPath, RecursiveSwitch.IsChecked.Value); BaseDirectoryLabel.Content = musicDirectory.Configuration.BaseDirectory; MRSDirectoryLabel.Content = musicDirectory.Configuration.TempDirectory; } }
// ReSharper disable once CSharpWarnings::CS1591 public MainWindow() { InitializeComponent(); musicDirectory = null; }