Beispiel #1
0
 private void RootFolderIsSelected(object sender, EventArgs e)
 {
     Cursor = Cursors.WaitCursor;
     _tbRootFolder.Enabled = false;
     fileList = WinUtils.GetFiles(filters, _tbRootFolder.Text);
     Invoke(new Action(RestoreCursorShowTotalFilesCount));
 }
Beispiel #2
0
        private void TbRootFolderMouseDoubleClick(object sender, MouseEventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();

            if (fbd.ShowDialog() == DialogResult.OK)
            {
                _tbRootFolder.Text    = fbd.SelectedPath;
                Cursor                = Cursors.WaitCursor;
                _tbRootFolder.Enabled = false;
                fileList              = WinUtils.GetFiles(filters, _tbRootFolder.Text);
                Invoke(new Action(RestoreCursorShowTotalFilesCount));
            }
        }
Beispiel #3
0
        private void BtnBrowseFolderClick(object sender, EventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();
            if (fbd.ShowDialog() == DialogResult.OK)
            {
                Cursor = Cursors.WaitCursor;
                _tbRootFolder.Enabled = false;
                _tbRootFolder.Text = fbd.SelectedPath;
                fileList = WinUtils.GetFiles(filters, _tbRootFolder.Text);

                Invoke(
                    new Action(
                        () =>
                            {
                                Cursor = Cursors.Default;
                                _tbRootFolder.Enabled = true;
                                _nudTotalSongs.Value = fileList.Count;
                                _btnStart.Enabled = true;
                                _tbSingleFile.Text = null;
                            }));
            }
        }