Example #1
0
        private void btnRemoveProductFromBlackList_Click(object sender, EventArgs e)
        {
            mainArea.Controls.Clear();
            UserControl removeFromBlackList = new RemoveProductFromBlackList(serviceFactory.CreateProductService());

            mainArea.Controls.Add(removeFromBlackList);
        }
Example #2
0
        private void btnSeeBlackList_Click(object sender, EventArgs e)
        {
            mainArea.Controls.Clear();
            UserControl removeFromBlackList = new RemoveProductFromBlackList(serviceFactory.CreateProductService(), "Lista negra de productos");

            ((RemoveProductFromBlackList)removeFromBlackList).HideButton();
            mainArea.Controls.Add(removeFromBlackList);
        }