예제 #1
0
        public DockWindowTabPage(TabPageType tabtype, Form1 parent, DockWindowTabCollection parenttab)
        {
            InitializeComponent();

            //タイトルバー
            this.Text = tabtype.TitleName();
            this.Icon = tabtype.GetIcon();
            this.PageType = tabtype;

            this.HideOnClose = true;

            //コントロール
            this.MainScreen = parent;
            MyControl = tabtype.CreateInstance();
            //MyControl.Init();
            UserControl myctrl = MyControl as UserControl;
            myctrl.Location = new Point(0, 0);
            myctrl.Padding = new Padding(0);
            //myctrl.Dock = DockStyle.Fill;
            this.ClientSize = myctrl.Size;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Controls.Add(myctrl);
            this.Collection = parenttab;
        }
            public TabUnitPageFactory(Form1 parent, DockWindowTabCollection collection)
            {
                _parent = parent;
                _collection = collection;

                this.UnitPages = new List<DockWindowTabPage>();
            }