public WWAApp(IntPtr hWnd) { this.hWnd = hWnd; Profiles = new List <Profile>(); AppDocument = WWADOMHelper.GetDocumentForWindow(hWnd) as HTMLDocument; }