예제 #1
0
        public override bool Equals(object obj)
        {
            IWrapper wrapper = obj as IWrapper;

            if (wrapper != null)
            {
                return(this.instance == wrapper.Value);
            }

            Forms::HtmlDocument doc = obj as Forms::HtmlDocument;

            if (obj != null)
            {
                return(this.instance == doc.DomDocument);
            }

            Forms::HtmlWindow win = obj as Forms::HtmlWindow;

            if (win != null)
            {
                return(this.instance == win.DomWindow);
            }

            Forms::HtmlElement elem = obj as Forms::HtmlElement;

            if (elem != null)
            {
                return(this.instance == elem.DomElement);
            }

            Forms::HtmlHistory hist = obj as Forms::HtmlHistory;

            if (hist != null)
            {
                return(this.instance == hist.DomHistory);
            }

            return(this.instance == obj);
        }
예제 #2
0
파일: Window.cs 프로젝트: akinomyoga/mwg
 /// <summary>
 /// System.Windows.Forms.HtmlWindow インスタンスから Window インスタンスを初期化します。
 /// </summary>
 /// <param name="win">基本となる HtmlWindow インスタンスを指定します。</param>
 public Window(Forms::HtmlWindow win) : base(win.DomWindow)
 {
     InitExecution();
 }