Exemplo n.º 1
0
        public HomeWindow(StorePage inStorePage, CartPage inCartPage, UserPage inUserPage, AdminPage inAdminPage)
        {
            this.InitializeComponent();

            this.storePage = inStorePage;
            this.cartPage = inCartPage;
            this.userPage = inUserPage;
            this.adminPage = inAdminPage;

            this.SetStorePage();
            this.tabPage1.Controls.Add(this.storePage);
            this.SetCartPage();
            this.tabPage2.Controls.Add(this.cartPage);
            this.SetUserPage();
            this.tabPage3.Controls.Add(this.userPage);
            this.SetAdminPage();
            this.tabPage4.Controls.Add(this.adminPage);
        }
Exemplo n.º 2
0
 private void SetUserPage()
 {
     this.userPage = new UserPage();
     this.userPage.Width = tabPage3.Width;
     this.userPage.Height = tabPage3.Height;
 }