Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
// ReSharper disable once CSharpWarnings::CS1591
        public MainWindow()
        {
            InitializeComponent();
            musicDirectory = null;
        }