Exemple #1
0
        private void TbSingleFileMouseDoubleClick(object sender, MouseEventArgs e)
        {
            string         filter = WinUtils.GetMultipleFilter("Audio files", filters);
            OpenFileDialog ofd    = new OpenFileDialog {
                Filter = filter, Multiselect = true
            };

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                _tbSingleFile.Text = null;
                foreach (string file in ofd.FileNames)
                {
                    _tbSingleFile.Text += "\"" + Path.GetFileName(file) + "\" ";
                }

                foreach (string file in ofd.FileNames)
                {
                    if (!fileList.Contains(file))
                    {
                        _btnStart.Enabled = true;
                        fileList.Add(file);
                    }
                }

                _nudTotalSongs.Value = fileList.Count;
            }
        }