public void AddBrowser(Browser arg) { browsers.Add(arg); arg.Location = new Point(0, 0); arg.Dock = DockStyle.Fill; arg.onTitleChanging += Browser_onTitleChanging; this.Controls.Add(arg); }
public BrowserForm(Browser arg = null) { this.FormClosed += BrowserForm_FormClosed; InitializeComponent(); if(arg != null) tabBrowser = new TabBrowser(arg); tabBrowser.Dock = DockStyle.Fill; this.Controls.Add(tabBrowser); }
public void AddBrowser(Browser arg) { browserControl.AddBrowser(arg); tabControl.AddNewTab(arg.Title); ShowPage(browserControl.GetIndex(arg)); }
public TabBrowser(Browser arg) : this() { this.AddBrowser(arg); }
public void BrowserIn(Browser arg) { Form tempForm = arg.FindForm(); arg.QueryContinueDrag -= Browser_QueryContinueDrag; this.AddBrowser(arg); int index = this.browserControl.GetIndex(arg); this.browserControl.ShowBrowser(index); tabControl.ShowTab(index); tempForm.Close(); tabControl.GetTab(index).DoDragDrop(new TabIndex(index), DragDropEffects.Move); }
public int GetIndex(Browser arg) { return browsers.IndexOf(arg); }