Example #1
0
        public static void Start()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            ITabView tabView = new TabViewLogic(Factory);

            ITabWindow tabWindow = Factory.CreateWindow(tabView);

            Form window = (Form)tabWindow.Control;

            Application.Run(window);
        }
Example #2
0
        public ITabWindow CreateWindow(ITabWindow parent, ITabPanel tab)
        {
            //((Control)tab.Control).ForgetAll();
            //((Control)tab.TabContent.Control).ForgetAll();

            //Panel panel = (Panel)tab.Control;
            //panel.MouseDown += tab.OnMouseClick;
            //panel.MouseUp += (sender, e) => tab.OnMouseUp(sender, new TabDropEventArgs(null, e.Location, Control.MousePosition));

            Form     window  = CreateDefaultTabWindow();
            ITabView tabView = new TabViewLogic(tab, this);

            //window.BubblingFromParent();

            tabView.Orientation = parent.Container.Orientation;
            var result = CustomTabWindow(new TabWindow(window, parent, tabView, this));

            //((Control)tab.Control).Parent.Parent.Parent.BindingConcreteEvents(window);
            window.BubblingFromParent();
            return(result);
        }