Exemple #1
0
        private void LoadProductToDatabase()
        {
            List <ProductDTO>      productDtoList  = ProductsInterface.GetProducts(fillInputs());
            DesktopLogicController logicController = new DesktopLogicController();

            logicController.addProductsToDatabase(productDtoList);

            MainForm.LogController.saveInLog("Importacion|" + DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss") + "|" + MainForm.UserName);
        }
        public OpsiClient(string opsiServerRpcEndpoint, string username, string password, bool ignoreInvalidCert = false)
        {
            _opsiHttpClient = new OpsiHttpClient(opsiServerRpcEndpoint, username, password, ignoreInvalidCert);

            BackendInterface  = new BackendInterface(_opsiHttpClient);
            DepotInterface    = new DepotInterface(_opsiHttpClient);
            HostInterface     = new HostInterface(_opsiHttpClient);
            ProductsInterface = new ProductsInterface(_opsiHttpClient);
            BackendInterface  = new BackendInterface(_opsiHttpClient);
        }
Exemple #3
0
        private void loadProductPanel()
        {
            UserControl inputPanel = ProductsInterface.Panel();

            InputsPanel = inputPanel;
            MainForm.emptyMainFormPanel();
            MainForm.WindowPanel.Controls.Add(inputPanel);
            MainForm.WindowPanel.Controls.Add(createImportProductsButton());
            MainForm.WindowPanel.Controls.Add(createBackButton());
        }