Ejemplo n.º 1
0
        private void AddTabPage(TreeNode n)
        {
            TabPage tp = new TabPage();

            tp.ImageIndex = 0;
            PnlOleText txtctrl = new PnlOleText(x => tp.Text = x);

            txtctrl.TreeNode  = n;
            txtctrl.TabParent = this;
            tp.Tag            = txtctrl;
            tp.Controls.Add(txtctrl);
            txtctrl.Dock = System.Windows.Forms.DockStyle.Fill;
            pnlOleText.TabPages.Add(tp);
        }
Ejemplo n.º 2
0
        public void pnlOleText_TabIndexChanged(object sender, EventArgs e)
        {
            if (pnlOleText.SelectedTab == null)
            {
                return;
            }
            PnlOleText pot = pnlOleText.SelectedTab.Tag as PnlOleText;

            if (pot == null)
            {
                return;
            }
            _parent.SelectTreeNode(pot.TreeNode);
        }
Ejemplo n.º 3
0
 public FindDialog(PnlOleText textctrl)
 {
     InitializeComponent();
     _textctrl = textctrl;
 }