Ejemplo n.º 1
0
        public void initialize(Bookstore b)
        {
            navigation = new BookstoreNavFunctions(this);
            //uclog = new UserControlLogin(b, navigation);
            //ucreg = new UserControlRegister(b, navigation);
            ucAcc = new UserControlAccount(b, navigation);
            //ucShCategs = new UserControlShowCategs(b, navigation);
            //ucEditCategs = new UserControlEditCategs(b, navigation);
            ucSea         = new UserControlSearch(b, navigation);
            funEditCategs = b;
            navEditCategs = navigation;
            showCategs    = b;
            navShowCategs = navigation;
            funLogin      = b;
            navLogin      = navigation;
            funRegister   = b;
            navRegister   = navigation;

            this.Controls.Clear();
            this.Controls.Add(new UserControlLogin(b, navigation));
            this.Refresh();
        }
Ejemplo n.º 2
0
 public UserControlShowCategs(IShowCategoriesFunctions iShowCategoriesFunctions, INavShowCategories iNavShowCategories)
 {
     InitializeComponent();
     showCategoriesFunctions = iShowCategoriesFunctions;
     navShowCategories       = iNavShowCategories;
 }