private IBuildServerCredentials ShowBuildServerCredentialsForm(string buildServerUniqueKey, IBuildServerCredentials buildServerCredentials)
        {
            if (revisionGrid.InvokeRequired)
            {
                return((IBuildServerCredentials)revisionGrid.Invoke(new Func <IBuildServerCredentials>(() => ShowBuildServerCredentialsForm(buildServerUniqueKey, buildServerCredentials))));
            }

            using (var form = new FormBuildServerCredentials(buildServerUniqueKey))
            {
                form.BuildServerCredentials = buildServerCredentials;

                if (form.ShowDialog(revisionGrid) == DialogResult.OK)
                {
                    return(buildServerCredentials);
                }
            }

            return(null);
        }
Beispiel #2
0
        private IIssueTrackerCredentials ShowIssueTrackerCredentialsForm(string IssueTrackerUniqueKey, IIssueTrackerCredentials IssueTrackerCredentials)
        {
            if (revisionGrid.InvokeRequired)
            {
                return((IIssueTrackerCredentials)revisionGrid.Invoke(new Func <IIssueTrackerCredentials>(() => ShowIssueTrackerCredentialsForm(IssueTrackerUniqueKey, IssueTrackerCredentials))));
            }

            using (var form = new FormIssueTrackerCredentials(IssueTrackerUniqueKey))
            {
                form.IssueTrackerCredentials = IssueTrackerCredentials;

                if (form.ShowDialog(revisionGrid) == DialogResult.OK)
                {
                    return(IssueTrackerCredentials);
                }
            }

            return(null);
        }