Beispiel #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);
        }
Beispiel #2
0
 private void SetCartPage()
 {
     this.cartPage = new CartPage();
     this.cartPage.Height = tabPage2.Height;
     this.cartPage.Width = tabPage2.Height;
 }