Example #1
0
 private void OnDeleteCustomField(EntityCustomFieldViewModel accountCustomFieldViewModel)
 {
     if (SelectedCustomField != null)
     {
         Model.EntityCustomFields.Remove(SelectedCustomField.Model);
         if (SelectedCustomField.Model.Id > 0)
         {
             Workspace.Delete(SelectedCustomField.Model);
         }
         EntityCustomFields.Remove(SelectedCustomField);
     }
 }
Example #2
0
 private bool CanDeleteCustomField(EntityCustomFieldViewModel arg)
 {
     return(SelectedCustomField != null);
 }