private void ShowChangesetDetailDialog(object o) { var changeset = TeamExplorer.CurrentPage.FindChangesetFromTeamExplorerPage(); if (changeset != null) { IPendingCheckinPendingChanges changes = ((IPendingCheckinPendingChanges)(((TeamExplorerPageBase)(TeamExplorer.CurrentPage)).Model)); Workspace workspace = changes.Workspace; TeamControlFactory.ShowDialogChangesetDetails(workspace, changeset.ChangesetId); } }
private void ShowCheckinDialog(object o) { IPendingCheckinPendingChanges changes = ((IPendingCheckinPendingChanges)(((TeamExplorerPageBase)(TeamExplorer.CurrentPage)).Model)); new List <IUICommand> { new DelegateCommand <object>("Included Changes Only", o1 => TeamControlFactory.ShowCheckinDialog(changes.Workspace, serviceProvider.Get <VersionControlExt>().PendingChanges.IncludedChanges)), new DelegateCommand <object>("Excluded Changes Only", o1 => TeamControlFactory.ShowCheckinDialog(changes.Workspace, serviceProvider.Get <VersionControlExt>().PendingChanges.ExcludedChanges)), StaticCommands.Seperator, new DelegateCommand <object>("Included and Excluded Changes", o1 => TeamControlFactory.ShowCheckinDialog(changes.Workspace, changes.AllPendingChanges)) }.ToContextMenu().IsOpen = true; }