Пример #1
0
        /// <summary>
        /// Binds the specified client to the user interface defined by args
        /// </summary>
        /// <param name="client">The client to bind.</param>
        /// <param name="parentWindow">The parent window.</param>
        public static void Bind(SvnClient client, IWin32Window parentWindow)
        {
            if (client == null)
                throw new ArgumentNullException("client");

            SvnUIBindArgs args = new SvnUIBindArgs();
            args.ParentWindow = parentWindow;

            Bind(client, args);
        }
Пример #2
0
        /// <summary>
        /// Binds the specified client to the user interface defined by args
        /// </summary>
        /// <param name="client">The client to bind.</param>
        /// <param name="args">The args.</param>
        public static void Bind(SvnRemoteSession client, SvnUIBindArgs args)
        {
            if (client == null)
                throw new ArgumentNullException("client");
            else if (args == null)
                throw new ArgumentNullException("args");

            SvnClientUIHandler handler = new SvnClientUIHandler(args.ParentWindow);

            handler.Bind(client, args);
        }
Пример #3
0
        /// <summary>
        /// Binds the specified client to the user interface defined by args
        /// </summary>
        /// <param name="client">The client to bind.</param>
        /// <param name="parentWindow">The parent window.</param>
        public static void Bind(SvnRemoteSession client, IWin32Window parentWindow)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }

            SvnUIBindArgs args = new SvnUIBindArgs();

            args.ParentWindow = parentWindow;

            Bind(client, args);
        }
Пример #4
0
        public static void Bind(SvnClient client, IWin32Window parentWindow, ISynchronizeInvoke synchronizer, Image headerImage)
        {
            if (client == null)
            throw new ArgumentNullException("svnClient");

            SvnUIBindArgs args = new SvnUIBindArgs();
            args.ParentWindow = parentWindow;
            args.Synchronizer = synchronizer;
            args.HeaderImage = headerImage;

            SvnClientUIHandler handler = new SvnClientUIHandler(args.ParentWindow);
            handler.Bind(client, args);
        }
Пример #5
0
        /// <summary>
        /// Binds the specified client to the user interface defined by args
        /// </summary>
        /// <param name="client">The client to bind.</param>
        /// <param name="args">The args.</param>
        public static void Bind(SvnRemoteSession client, SvnUIBindArgs args)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }
            else if (args == null)
            {
                throw new ArgumentNullException("args");
            }

            SvnClientUIHandler handler = new SvnClientUIHandler(args.ParentWindow);

            handler.Bind(client, args);
        }
Пример #6
0
        public static void Bind(SvnClient client, IWin32Window parentWindow, ISynchronizeInvoke synchronizer, Image headerImage)
        {
            if (client == null)
            {
                throw new ArgumentNullException("svnClient");
            }

            SvnUIBindArgs args = new SvnUIBindArgs();

            args.ParentWindow = parentWindow;
            args.Synchronizer = synchronizer;
            args.HeaderImage  = headerImage;

            SvnClientUIHandler handler = new SvnClientUIHandler(args.ParentWindow);

            handler.Bind(client, args);
        }
        internal void Bind(SvnClientContext svnClient, SvnUIBindArgs args)
        {
            Image        = args.HeaderImage;
            UIService    = args.UIService;
            Synchronizer = args.Synchronizer;

            if (!args.AutoScaleBaseSize.IsEmpty)
            {
                AutoScaleBaseSize = args.AutoScaleBaseSize;
            }

            svnClient.Authentication.UserNameHandlers                     += DialogUserNameHandler;
            svnClient.Authentication.UserNamePasswordHandlers             += DialogUserNamePasswordHandler;
            svnClient.Authentication.SslClientCertificateHandlers         += DialogSslClientCertificateHandler;
            svnClient.Authentication.SslClientCertificatePasswordHandlers += DialogSslClientCertificatePasswordHandler;
            svnClient.Authentication.SslServerTrustHandlers               += DialogSslServerTrustHandler;
            svnClient.Authentication.SshServerTrustHandlers               += DialogSshServerTrustHandlers;
            svnClient.Authentication.BeforeEngineDialog                   += new EventHandler <SharpSvn.Security.SvnBeforeEngineDialogEventArgs>(BeforeEngineDialog);
        }
Пример #8
0
        private void HookUI(AnkhSvnPoolRemoteSession client)
        {
            // Let SharpSvnUI handle login and SSL dialogs
            SvnUIBindArgs bindArgs = new SvnUIBindArgs();
            bindArgs.ParentWindow = new OwnerWrapper(DialogOwner);
            bindArgs.UIService = GetService<IUIService>();
            bindArgs.Synchronizer = _syncher;

            SvnUI.Bind(client, bindArgs);
        }