예제 #1
0
        private void btnNewProduct_Click(object sender, EventArgs e)
        {
            AddEditProduct addEditProduct = new AddEditProduct();

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