Exemplo n.º 1
0
        private void StartUp()
        {
            categoryPresenter.Display();
            currentCategory = listCategories[0];
            LoadDataFromDBBaseCategory(currentCategory);
            dgvProduct.DataSource = null;
            dgvProduct.Rows.Clear();
            dgvProductGroup.DataSource = null;
            dgvProductGroup.Rows.Clear();

            suppliersPresenter.Display();
        }
Exemplo n.º 2
0
        private void frmAddEditProduct_Load(object sender, EventArgs e)
        {
            if (Categories == null)
            {
                categorysPresenter.Display();
                LoadCategories();
            }
            else
            {
                LoadCategories();
            }

            if (ProductSelected != null)
            {
                cboCategory.Enabled     = false;
                cboProductGroup.Enabled = false;
                LoadProductToFields();
                btnSave.Text = "Save";
            }
        }