Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 public void AddBrowser(Browser arg)
 {
     browserControl.AddBrowser(arg);
     tabControl.AddNewTab(arg.Title);
     ShowPage(browserControl.GetIndex(arg));
 }
Example #4
0
 public TabBrowser(Browser arg)
     : this()
 {
     this.AddBrowser(arg);
 }
Example #5
0
        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);
        }
Example #6
0
 public int GetIndex(Browser arg)
 {
     return browsers.IndexOf(arg);
 }