Ejemplo n.º 1
0
        private void btnCategoryUpdate_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Kategori Güncellensin mi?", "Kategori Güncelleniyor...", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                Category _newCategory = new Category
                {
                    CategoryName = tbxCategoryUpdate.Text   //İSMİ GÜNCELLE
                };

                _categoryDal.CategoryUpdate(Convert.ToInt32(categoryUpdateDg.CurrentRow.Cells[0].Value), _newCategory);
            }
        }