コード例 #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);
 }