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