Esempio n. 1
0
        public void Tch_AddPage()
        {
            ITabControlHostService host = new TabControlHost(services, tabCtrl);
            IWindowFrame frame = host.Add(pane, "Foo");

            Assert.AreEqual("Foo", tabCtrl.TabPages[0].Text);
        }
Esempio n. 2
0
        public void Tch_AttachToPage()
        {
            tabCtrl.TabPages.Add("Test");
            Assert.AreEqual(1, tabCtrl.TabPages.Count);
            ITabControlHostService host = new TabControlHost(services, tabCtrl);
            IWindowFrame frame = host.Attach(pane, tabCtrl.TabPages[0]);
            frame.Title = "Foo";

            Assert.AreEqual("Foo", tabCtrl.TabPages[0].Text);
        }