コード例 #1
0
 private void ShowDialog(DialogAction action)
 {
     Microsoft.TeamFoundation.VersionControl.Client.Workspace workspace = null;
     if (action == DialogAction.Edit)
     {
         string workspaceName = _listStore.GetValue(_listView.SelectedRow, _name);
         workspace = WorkspaceHelper.GetWorkspace(this.projectCollection, workspaceName);
     }
     using (var dialog = new WorkspaceAddEditDialog(workspace, this.projectCollection))
     {
         if (dialog.Run(this) == Command.Ok)
         {
             FillWorkspaces();
         }
     }
 }