Beispiel #1
0
        public static void Bind(GitClient client, GitUIBindArgs args)
        {
            if (client == null)
                throw new ArgumentNullException("client");

            client.BindArgs = args;
        }
        // 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);
        }