Exemple #1
0
 private void SaveButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (m_specialModifyText == false)
         {
             SortedList slKitchenText = new SortedList();
             slKitchenText.Add("ID", txtKitchenText.Tag);
             slKitchenText.Add("KT", txtKitchenText.Text);
             SystemManager objSystem = new SystemManager();
             objSystem.SaveKitchenText(slKitchenText);
         }
         else
         {
             SortedList slKitchenText = new SortedList();
             slKitchenText.Add("SPID", txtKitchenText.Tag);
             slKitchenText.Add("SPTXT", txtKitchenText.Text);
             SystemManager objSystem = new SystemManager();
             objSystem.SaveSpecialText(slKitchenText);
         }
         this.LoadKitchenText();
         MessageBox.Show("Kitchen text has been saved scucessfully.", RMSGlobal.MessageBoxTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }