예제 #1
0
        public formBoss(IUsersAPI apiUsers, IEmployeesAPI apiEmployees, IProductsAPI apiProducts, IIngredientsAPI apiIngredients)
        {
            InitializeComponent();

            panelSub = new FlowLayoutPanel();
            buttons  = new List <Button>();
            exit     = false;
            type     = 0;

            //Asignamos las variables api
            _apiUsers       = apiUsers;
            _apiEmployees   = apiEmployees;
            _apiProducts    = apiProducts;
            _apiIngredients = apiIngredients;
        }
예제 #2
0
 public formNewEmployee(IEmployeesAPI api)
 {
     InitializeComponent();
     _api = api;
 }