private void btnClosePanelAddMP3Files_Click(object sender, EventArgs e)
 {
     BCHWinFormUtilities.ListBoxToListBox(ucDirFileSearch1.FileListBox, lbMP3Files, true);
     tbMP3Count.Text            = lbMP3Files.Items.Count.ToString();
     pnlBatchMp3TagEdit.Visible = true;
     pnlDirFileSearch.Visible   = false;
 }
Пример #2
0
 private void btnClosePanelAddMP3Files_Click(object sender, EventArgs e)
 {
     BCHWinFormUtilities.ListBoxToListBox(ucDirFileSearch1.FileListBox, lbFiles, true);
     lblFileCount.Text        = "Count: " + lbFiles.Items.Count.ToString();
     pnlMain.Visible          = true;
     pnlDirFileSearch.Visible = false;
 }
        private void addMP3FilesMenuItem_Click(object sender, EventArgs e)
        {
            ucDirFileSearch1.FileTypeEnabled = false;
            List <string> ftList = ucDirFileSearch1.FileTypeList;

            if (ftList.Count < 1 || ftList.Count > 1 ||
                !ftList.Contains("mp3", StringComparer.CurrentCultureIgnoreCase))
            {
                ftList.Clear();
                ftList.Add("mp3");
                ucDirFileSearch1.FileTypeList = ftList;
            }

            BCHWinFormUtilities.ListBoxToListBox(lbMP3Files, ucDirFileSearch1.FileListBox, true);

            pnlBatchMp3TagEdit.Visible = false;
            pnlDirFileSearch.Visible   = true;
        }
Пример #4
0
        private void btnGetFiles_Click(object sender, EventArgs e)
        {
            ucDirFileSearch1.FileTypeEnabled = true;
            List <string> ftList = ucDirFileSearch1.FileTypeList;

            //if (ftList.Count < 1 || ftList.Count > 1 ||
            //    !ftList.Contains("mp3", StringComparer.CurrentCultureIgnoreCase))
            //{
            //    ftList.Clear();
            //    ftList.Add("mp3");
            //    ucDirFileSearch1.FileTypeList = ftList;
            //}

            BCHWinFormUtilities.ListBoxToListBox(lbFiles, ucDirFileSearch1.FileListBox, true);

            pnlMain.Visible          = false;
            pnlDirFileSearch.Visible = true;
        }