public void DeleteItem(string id)
        {
            BaseService.CheckLoginAndLicense();
            DataItem item = BaseObject.GetById <DataItem>(new Guid(id));

            item.Delete();
            //BitCaching.ClearCache();
            //BaseObject.DeleteById<DataItem>(new Guid(id));
        }
Beispiel #2
0
 private void DeleteItem(DataItem item)
 {
     try
     {
         item.Delete();
         item.Save(Database);
         bsList.Remove(item);
     }
     catch (Exception)
     {
         MessageBox.Show(EntryControl.Resources.Message.Error.CannotDelete);
     }
 }