private void frmWebBowser_Load(object sender, EventArgs e) { Settings.WaitForCompleteTimeOut = 120000; Settings.AttachToBrowserTimeOut = 120000; webBrowser1.ScriptErrorsSuppressed = false; Settings.AutoStartDialogWatcher = false; ie = new IE(webBrowser1.ActiveXInstance); try { ie.ClearCache(); } catch { } //ie = new IE(); dialogWatcher = new DialogWatcher(new Window(this.Handle)); dialogWatcher.CloseUnhandledDialogs = false; webpage = new WebPage(); lookUpEditPage.Properties.DataSource = WebPage.GetAll(); lookUpEditPage.Properties.DisplayMember = "Page"; lookUpEditPage.Properties.ValueMember = "ID"; if (pageID > 0) { lookUpEditPage.EditValue = long.Parse(pageID.ToString()); } }
private void _LoadDSWebLink() { int i = gridView1.TopRowIndex; int k = gridView1.FocusedRowHandle; gridControl1.DataSource = WebPage.GetAll(); gridView1.FocusedRowHandle = k; gridView1.TopRowIndex = i; }