コード例 #1
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            var editForm = new EditShoppingCartForm(_cartId);

            editForm.ShowDialog();
            Reload();
        }
コード例 #2
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            var cartId   = Convert.ToInt32(dataGridViewCarts.SelectedRows[0].Cells[0].Value);
            var editForm = new EditShoppingCartForm(cartId);

            editForm.ShowDialog();
            ReloadForm();
        }