예제 #1
0
        /// <summary>
        /// Shows the edit form to modify a record.
        /// </summary>
        private void EditThesaurusItem(DBString ID)
        {
            if (ID.IsNull)
              {
            return;
              }

              frmThesaurusEdit frmEdit = null;
              try
              {
            frmEdit = new frmThesaurusEdit(ID, true);

            DialogResult result = frmEdit.ShowDialog();
            if (result == DialogResult.OK)
            {
              FillDatagridThesaurus(frmEdit.CurrentID);
            }
              }
              catch (Exception ex)
              {
            //	---	Log exception
            ExceptionManager.Publish(ex);
            //	---	Display Exception
            ErrorHandler.DisplayError("Hiba történt az adatok megtekintése során.", ex);
              }
              finally
              {
            if (frmEdit != null) frmEdit.Dispose();
              }
        }