コード例 #1
0
 internal void SetCanDownload(CanDownloadDelegate action)
 {
     canDownload = action;
 }
コード例 #2
0
        /// <summary>
        /// See <see cref="IDownloadHandler.CanDownload(IWebBrowser, IBrowser, string, string)"/> for details.
        /// </summary>
        /// <param name="action">Action to be executed when <see cref="IDownloadHandler.CanDownload(IWebBrowser, IBrowser, string, string)"/>
        /// is called</param>
        /// <returns>
        /// Fluent Builder, call <see cref="Build"/> to create
        /// a new <see cref="IDownloadHandler"/> instance
        /// </returns>
        public DownloadHandlerBuilder CanDownload(CanDownloadDelegate action)
        {
            handler.SetCanDownload(action);

            return(this);
        }