Exemplo n.º 1
0
        private void btnNewProduct_Click(object sender, EventArgs e)
        {
            AddEditProduct addEditProduct = new AddEditProduct();

            addEditProduct.StartPosition = FormStartPosition.CenterParent;
            addEditProduct.ShowDialog(this);
        }
Exemplo n.º 2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            DataGridViewRow row            = dgvProducts.Rows[rowIndex];
            int             productId      = Convert.ToInt32(row.Cells["ProductId"].Value);
            AddEditProduct  addEditProduct = new AddEditProduct();

            addEditProduct.productID  = productId;
            addEditProduct.formsState = Common.eFormsState.View;
            addEditProduct.ShowDialog(this);
            BindProductReportsDataGrid();
        }
Exemplo n.º 3
0
 private void btnView_Click(object sender, EventArgs e)
 {
     DataGridViewRow row = dgvProducts.Rows[rowIndex];
     int productId = Convert.ToInt32(row.Cells["ProductId"].Value);
     AddEditProduct addEditProduct = new AddEditProduct();
     addEditProduct.productID = productId;
     addEditProduct.formsState = Common.eFormsState.View;
     addEditProduct.ShowDialog(this);
     BindProductReportsDataGrid();
 }
Exemplo n.º 4
0
 private void btnNewProduct_Click(object sender, EventArgs e)
 {
     AddEditProduct addEditProduct = new AddEditProduct();
     addEditProduct.StartPosition = FormStartPosition.CenterParent;
     addEditProduct.ShowDialog(this);
 }