/// <summary> /// Constructor for BrowserData /// </summary> /// <param name="iDataObject">The IDataObject from which to create the BrowserData</param> private BrowserData(IDataObject iDataObject, BrowserClipboardData browserClip) { m_dataObject = iDataObject; m_webBrowser = browserClip.Browser; m_isFormPost = browserClip.IsFormPost; m_htmlDocument = browserClip.htmlDocument; }
/// <summary> /// Creates a BrowserData based upon an IDataObject /// </summary> /// <param name="iDataObject">The IDataObject from which to create the BrowserData</param> /// <returns>The BrowserData, null if no BrowserData could be created</returns> public static BrowserData Create(IDataObject iDataObject) { // Validate required format BrowserClipboardData browserClip = (BrowserClipboardData)iDataObject.GetData(FORMAT_NAME); if (browserClip != null) { return(new BrowserData(iDataObject, browserClip)); } else { return(null); } }
/// <summary> /// Constructor for BrowserData /// </summary> /// <param name="iDataObject">The IDataObject from which to create the BrowserData</param> private BrowserData(IDataObject iDataObject, BrowserClipboardData browserClip) { m_dataObject = iDataObject; m_webBrowser = browserClip.Browser; m_isFormPost = browserClip.IsFormPost; m_htmlDocument = browserClip.htmlDocument; }