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

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

            txtctrl.TreeNode  = n;
            txtctrl.TabParent = this;
            tp.Tag            = txtctrl;
            tp.Controls.Add(txtctrl);
            txtctrl.Dock = DockStyle.Fill;
            pnlOleText.TabPages.Add(tp);
        }
Esempio n. 2
0
 public FindDialog(PnlOleText textctrl)
 {
     InitializeComponent();
     _textctrl = textctrl;
 }