private void opmButton1_Click(object sender, EventArgs e)
        {
            OPMFolderBrowserDialog dlg = new OPMFolderBrowserDialog();
            dlg.SelectedPath = txtDestFolder.Text;
            dlg.ShowNewFolderButton = true;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                txtDestFolder.Text = dlg.SelectedPath;
            }
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            OPMFolderBrowserDialog dlg = new OPMFolderBrowserDialog();
            dlg.Description = Translator.Translate("TXT_CHOOSE_FAVORITE");

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                CreateItem(dlg.SelectedPath);

                if (OnModified != null)
                {
                    OnModified(sender, e);
                }
            }
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            OPMFolderBrowserDialog dlg = new OPMFolderBrowserDialog();

            dlg.Description = Translator.Translate("TXT_CHOOSE_FAVORITE");

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                CreateItem(dlg.SelectedPath);

                if (OnModified != null)
                {
                    OnModified(sender, e);
                }
            }
        }
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            OPMFolderBrowserDialog dlg = new OPMFolderBrowserDialog();
            dlg.SelectedPath = theTask.SearchPath;

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                theTask.SearchPath = dlg.SelectedPath;
                txtSearchPath.Text = dlg.SelectedPath;
            }
        }
        private void btnAddFolder_Click(object sender, EventArgs e)
        {
            CursorHelper.ShowWaitCursor(this, true);

            OPMFolderBrowserDialog dlg = new OPMFolderBrowserDialog();
            dlg.Description = Translator.Translate("TXT_SELECTTAGGEDFILESFOLDER");
            dlg.SelectedPath = ProTONEConfig.LastOpenedFolder;
            dlg.ShowNewFolderButton = false;

            dlg.InheritAppIcon = false;
            dlg.Icon = Resources.Tagging16.ToIcon();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                IEnumerable<string> files = Directory.EnumerateFiles(dlg.SelectedPath, "*.mp?", SearchOption.AllDirectories);
                if (files != null)
                {
                    foreach (string file in files)
                    {
                        AddFile(file);
                    }
                }
                
                ProTONEConfig.LastOpenedFolder = dlg.SelectedPath;
            }

            CursorHelper.ShowWaitCursor(this, false);
            Wizard.CanMoveNext = lvFiles.Items.Count > 0;
        }
        private void btnChange_Click(object sender, EventArgs e)
        {
            OPMFolderBrowserDialog fld = new OPMFolderBrowserDialog();
            fld.SelectedPath = txtLogPath.Text;
            fld.Description = Translator.Translate("TXT_CHOOSELOGPATH");

            if (fld.ShowDialog() == DialogResult.OK)
            {
                txtLogPath.Text = fld.SelectedPath;
                Modified = true;
            }
        }
        private void btnOpenDvdFolder_Click(object sender, EventArgs e)
        {
            OPMFolderBrowserDialog dlg = new OPMFolderBrowserDialog();
            dlg.ShowNewFolderButton = false;
            dlg.Description = Translator.Translate("TXT_LOAD_DVD_FOLDER");
            dlg.PerformPathValidation += new PerformPathValidationHandler(dlg_PerformPathValidation);

            dlg.InheritAppIcon = false;
            dlg.Icon = this.Icon;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    _selectedMedia = DvdMedia.FromPath(dlg.SelectedPath);
                }
                catch 
                {
                    _selectedMedia = null;
                }

                if (_selectedMedia != null)
                {
                    DialogResult = DialogResult.OK;
                    Close();
                }
                else
                {
                    MessageDisplay.Show(Translator.Translate("TXT_INVALIDDVDVOLUME"),
                        Translator.Translate("TXT_ERROR"), MessageBoxIcon.Warning);
                }
            }
        }
        private void OnChooseWorkDir(object sender, EventArgs e)
        {
            OPMFolderBrowserDialog fld = new OPMFolderBrowserDialog();
            fld.SelectedPath = txtLaunchPath.Text;
            fld.Description = Translator.Translate("TXT_CHOOSEWORKDIR");

            if (fld.ShowDialog() == DialogResult.OK)
            {
                txtWorkDir.Text = fld.SelectedPath;
            }
        }