private void ButtonSelXMLPath_Click(object sender, EventArgs e) { FolderBrowserDialog fd = new FolderBrowserDialog(); fd.ShowNewFolderButton = true; fd.SelectedPath = AppSettingsDir; if (fd.ShowDialog() == DialogResult.OK) { textBoxSettingsXMLPath.Text = fd.SelectedPath; AppSettingsDir = textBoxSettingsXMLPath.Text.Trim(new char[] { '"', ' ' }); AppSettingsDir = AppSettingsDir.TrimEnd(new char[] { '\\' }); IsDefaultLocation = false; } }
private void ButtonSelXMLPath_Click(object sender, EventArgs e) { FolderBrowserDialog fd = new FolderBrowserDialog(); string Msg = "Select the Path containing the selected\nPicasaStarter Settings file: PicasaStarterSettings.xml"; fd.Description = Msg; fd.ShowNewFolderButton = true; fd.SelectedPath = AppSettingsDir; if (fd.ShowDialog() == DialogResult.OK) { textBoxSettingsXMLPath.Text = fd.SelectedPath; AppSettingsDir = textBoxSettingsXMLPath.Text.Trim(new char[] { '"', ' ' }); AppSettingsDir = AppSettingsDir.TrimEnd(new char[] { '\\' }); IsDefaultLocation = false; } }