示例#1
0
文件: GitUI.cs 项目: mankash/sharpGit
        /// <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(GitClient client, GitUIBindArgs args)
        {
            if (client == null)
                throw new ArgumentNullException("client");
            else if (args == null)
                throw new ArgumentNullException("args");

            GitClientUIHandler handler = new GitClientUIHandler(args.ParentWindow);

            handler.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(GitClient client, GitUIBindArgs args)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }
            else if (args == null)
            {
                throw new ArgumentNullException("args");
            }

            GitClientUIHandler handler = new GitClientUIHandler(args.ParentWindow);

            handler.Bind(client, args);
        }