Esempio n. 1
0
        private void ClientEditWindow_DownloadFolderOpen(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.FolderBrowserDialog dlg = new System.Windows.Forms.FolderBrowserDialog()
            {
                Description  = "Select the directory that you want to use as the download location.",
                SelectedPath = DownloadPath.Text
            };

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                DownloadPath.Text = dlg.SelectedPath;
                DownloadPath.Focus();
            }
        }
Esempio n. 2
0
 private void ClientEditWindow_DownloadFolderClear(object sender, RoutedEventArgs e)
 {
     DownloadPath.Text = "";
     DownloadPath.Focus();
 }