void IBranchMenuOperations.DeleteBranch()
        {
            RepositorySpec        repSpec          = BranchesSelection.GetSelectedRepository(mBranchesListView);
            List <RepositorySpec> repositories     = BranchesSelection.GetSelectedRepositories(mBranchesListView);
            List <BranchInfo>     branchesToDelete = BranchesSelection.GetSelectedBranches(mBranchesListView);

            mBranchOperations.DeleteBranch(repositories, branchesToDelete);
        }
示例#2
0
        void IBranchMenuOperations.DeleteBranch()
        {
            RepositorySpec        repSpec          = BranchesSelection.GetSelectedRepository(mBranchesListView);
            List <RepositorySpec> repositories     = BranchesSelection.GetSelectedRepositories(mBranchesListView);
            List <BranchInfo>     branchesToDelete = BranchesSelection.GetSelectedBranches(mBranchesListView);

            mBranchOperations.DeleteBranch(repositories, branchesToDelete, () =>
            {
                TrackFeatureUseEvent.For(
                    repSpec,
                    TrackFeatureUseEvent.Features.DeleteBranch);
            });
        }