コード例 #1
0
        private void pbxAdd_Click(object sender, EventArgs e)
        {
            ProductDetailsForm productDetailsForm = new ProductDetailsForm();

            productDetailsForm.Show();
            this.Hide();
        }
コード例 #2
0
        private void pbxEdit_Click(object sender, EventArgs e)
        {
            int idProduct = Int32.Parse(dgvProduct.SelectedRows[0].Cells[0].Value.ToString());

            ProductDetailsForm productDetails = new ProductDetailsForm(idProduct);

            productDetails.Show();

            this.Close();
        }