Ejemplo n.º 1
0
        private static void NavigateToCommit(string commitId, IServiceProvider serviceProvider)
        {
            bool          test = P4VsProvider.CurrentScm.CheckConnection();
            P4ScmProvider scm  = P4VsProvider.CurrentScm;

            SubmittedChangelistDlg submitted = new SubmittedChangelistDlg(scm, true);

            int.TryParse(commitId, out int ID);
            submitted.ChangeListId = ID;

            Perforce.P4.ServerMetaData smd = scm.GetServerMetaData();
            submitted.Text = string.Format(Resources.SubmittedChangelistsToolWindowControl_SubmittedChangelistDlgCaption,
                                           commitId, smd.Address.Uri, scm.Connection.Repository.Connection.UserName);

            submitted.ShowDialog();
        }