Exemplo n.º 1
0
 private async void TsmOpenClick(object sender, EventArgs e)
 {
     using (var ofd = new FolderBrowserDialog())
     {
         if (ofd.ShowDialog() == DialogResult.OK)
         {
             AddNode(await _treeFactory.CreateAsync(ofd.SelectedPath)
                     .ConfigureAwait(true));
         }
     }
 }