示例#1
0
        private void _btnRemoveRepository_Click(object sender, EventArgs e)
        {
            RepositoryItem item = (RepositoryItem)_lbxRepositories.SelectedItem;

            if (DeleteRepositoryAction.DeleteRepository(this, item.Resource, false))
            {
                RefreshRepositoryList(null);
            }
        }
示例#2
0
 private void DeleteIgnoredClientChangesets(IResource repository, string[] clients)
 {
     foreach (string client in clients)
     {
         IResourceList changeSets = Core.ResourceStore.FindResources(Props.ChangeSetResource,
                                                                     Props.P4Client, client);
         changeSets = changeSets.Intersect(repository.GetLinksOfType(Props.ChangeSetResource,
                                                                     Props.ChangeSetRepository));
         foreach (IResource changeSet in changeSets)
         {
             DeleteRepositoryAction.DeleteChangeSet(changeSet);
         }
     }
 }