Ejemplo n.º 1
0
        private void ClassifyLibrary_Click(object sender, RoutedEventArgs e)
        {
            string dir = directoryTextBox.Text;

            if (Directory.Exists(dir))
            {
                string[] songs = DirectoryBrowser.getSongs(dir);
                //will start automatically
                Framework.ClassifierThread worker = new ClassifierThread(songs);
            }
        }
Ejemplo n.º 2
0
        private void settingsButton_Click(object sender, RoutedEventArgs e)
        {
            Settings settingdlg = new Settings();

            settingdlg.ShowDialog();
            if (settingdlg.DialogResult.HasValue && settingdlg.DialogResult.Value)
            {
                string dir = settingdlg.directoryTextBox.Text;
                if (Directory.Exists(dir))
                {
                    string[] songs = DirectoryBrowser.getSongs(dir);
                    //will start automatically
                    worker = new ClassifierThread(songs);
                }
                //Handle the settings changed
            }
            UpdateButtonStates();
        }