Пример #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {

                Int32 kitchenTextID = Convert.ToInt32("0" + dgvKitchenText.CurrentRow.Cells[0].Value);
                string kitchenText = txtKitchenText.Text;
                SystemManager objSystem = new SystemManager();
                if (m_specialModifyText == false)
                {
                    objSystem.UpdateKitchenText(kitchenTextID, kitchenText);
                }
                else
                {
                    objSystem.UpdateSpecialText(kitchenTextID, kitchenText);                }
                this.LoadKitchenText();
            }
            catch (Exception exp)
            {
                throw exp;
            }
        }