Exemplo n.º 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="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);
        }
Exemplo n.º 2
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);
        }