Ejemplo n.º 1
0
 private void OnAddWorkingFolder(object sender, EventArgs e)
 {
     using (var projectSelect = new ProjectSelectDialog(this.projectCollection))
     {
         if (projectSelect.Run(this) == Command.Ok && !string.IsNullOrEmpty(projectSelect.SelectedPath))
         {
             using (SelectFolderDialog folderSelect = new SelectFolderDialog("Browse For Folder"))
             {
                 folderSelect.Multiselect      = false;
                 folderSelect.CanCreateFolders = true;
                 if (folderSelect.Run(this))
                 {
                     var row = _workingFoldersStore.AddRow();
                     _workingFoldersStore.SetValue(row, _tfsFolder, projectSelect.SelectedPath);
                     _workingFoldersStore.SetValue(row, _localFolder, folderSelect.Folder);
                 }
             }
         }
     }
 }
 private void OnAddWorkingFolder(object sender, EventArgs e)
 {
     using (var projectSelect = new ProjectSelectDialog(this.projectCollection))
     {
         if (projectSelect.Run(this) == Command.Ok && !string.IsNullOrEmpty(projectSelect.SelectedPath))
         {
             using (SelectFolderDialog folderSelect = new SelectFolderDialog("Browse For Folder"))
             {
                 folderSelect.Multiselect = false;
                 folderSelect.CanCreateFolders = true;
                 if (folderSelect.Run(this))
                 {
                     var row = _workingFoldersStore.AddRow();
                     _workingFoldersStore.SetValue(row, _tfsFolder, projectSelect.SelectedPath);
                     _workingFoldersStore.SetValue(row, _localFolder, folderSelect.Folder);
                 }
             }
         }
     }
 }