private void btnNewProduct_Click(object sender, EventArgs e)
        {
            AddEditProduct addEditProduct = new AddEditProduct();

            addEditProduct.StartPosition = FormStartPosition.CenterParent;
            addEditProduct.ShowDialog(this);
        }
        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();
        }
 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();
 }
 private void btnNewProduct_Click(object sender, EventArgs e)
 {
     AddEditProduct addEditProduct = new AddEditProduct();
     addEditProduct.StartPosition = FormStartPosition.CenterParent;
     addEditProduct.ShowDialog(this);
 }