Exemple #1
0
        public static string GetFolder()
        {
            string folder = Path.Combine(TaxonUtils.GetTaxonPath(), "ListOfTaxons");

            if (!System.IO.Directory.Exists(folder))
            {
                System.IO.Directory.CreateDirectory(folder);
            }
            return(folder);
        }
Exemple #2
0
 private void ButtonBrowseDestination_Click(object sender, EventArgs e)
 {
     using (var fbd = new FolderBrowserDialog())
     {
         fbd.Description = "Select destination folder";
         if (textBoxDestination.Text != "")
         {
             fbd.SelectedPath = textBoxDestination.Text;
         }
         else
         {
             fbd.SelectedPath = TaxonUtils.GetTaxonPath();
         }
         DialogResult result = fbd.ShowDialog();
         if (result != DialogResult.OK || string.IsNullOrWhiteSpace(fbd.SelectedPath))
         {
             return;
         }
         textBoxDestination.Text = fbd.SelectedPath;
     }
 }