Exemple #1
0
        private void btnBrowse_Click(object sender, System.EventArgs e)
        {
            FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();

            folderBrowserDialog.SelectedPath = this.txtLocalMediaPath.Text;
            DialogResult dr = folderBrowserDialog.ShowDialog();

            if (dr == DialogResult.OK)
            {
                DialogResult save = MessageBox.Show(
                    TranslationManager.GetManager().Translate("PublishForm.Mbox_Caption.SaveLocalMediaPathToOptions"),
                    TranslationManager.GetManager().Translate("Attention"),
                    MessageBoxButtons.YesNo,
                    MessageBoxIcon.Asterisk);

                if (save == DialogResult.Yes)
                {
                    PublishOptions.LocalMediaPath = folderBrowserDialog.SelectedPath;
                    PublishOptions.Save();
                }

                this.txtLocalMediaPath.Text = folderBrowserDialog.SelectedPath;
            }
        }