void IPendingChangesMenuOperations.ApplyLocalChanges() { List <ChangeInfo> selectedChanges = PendingChangesSelection .GetSelectedChanges(mPendingChangesTreeView); if (selectedChanges.Count == 0) { return; } ApplyLocalChangesOperation operation = new ApplyLocalChangesOperation( mWkInfo, mPlasticClient, mPlasticClient, mProgressControls, mDeveloperNewIncomingChangesUpdater); operation.ApplyLocalChanges( selectedChanges, PendingChangesSelection.GetAllChanges(mPendingChangesTreeView)); }
void IPendingChangesMenuOperations.SearchMatches() { ChangeInfo selectedChange = PendingChangesSelection .GetSelectedChange(mPendingChangesTreeView); if (selectedChange == null) { return; } SearchMatchesOperation operation = new SearchMatchesOperation( mWkInfo, mPlasticClient, mPlasticClient, mProgressControls, mDeveloperNewIncomingChangesUpdater); operation.SearchMatches( selectedChange, PendingChangesSelection.GetAllChanges(mPendingChangesTreeView)); }