using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using MyDownloader.Core.Common; namespace MyDownloader.Core.UI { public partial class DownloadFolder : UserControl { public DownloadFolder() { InitializeComponent(); Text = "Directory"; if (Settings.Default.DownloadFolder == "") Settings.Default.DownloadFolder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); txtSaveTo.Text = Settings.Default.DownloadFolder; } public string LabelText { get { return lblText.Text; } set { lblText.Text = value; } } public string Folder { get { return PathHelper.GetWithBackslash(txtSaveTo.Text); } set { txtSaveTo.Text = value; } } private void btnSelAV_Click(object sender, EventArgs e) { if (folderBrowserDialog1.ShowDialog() == DialogResult.OK) { txtSaveTo.Text = folderBrowserDialog1.SelectedPath; } } } }