Ejemplo n.º 1
0
        // Use separate function to delay loading the SharpGit.UI.dll
        private void HookUI(VisualGitPoolClient client)
        {
            // Let SharpGitUI handle login and SSL dialogs
            GitUIBindArgs bindArgs = new GitUIBindArgs();
            bindArgs.ParentWindow = new OwnerWrapper(DialogOwner);
            bindArgs.UIService = GetService<IUIService>();
            bindArgs.Synchronizer = _syncher;

            GitUI.Bind(client, bindArgs);
        }
Ejemplo n.º 2
0
        private GitPoolClient CreateClient(bool hookUI)
        {
            EnsureNames();

            if (DialogOwner == null)
                hookUI = false;

            VisualGitPoolClient client = new VisualGitPoolClient(this, hookUI, _returnCookie);

            if (hookUI)
                HookUI(client);

            return client;
        }