Exemple #1
0
        void ObjectsItemEndEdit(IEditableObject sender)
        {
            RecursoFactibleViewModel UIObject = sender as RecursoFactibleViewModel;

            try
            {
                RecursoFactibleDataAccess.UpdateRecursoFactible(UIObject.GetDataObject());
            }
            catch (Exception ex)
            {
                log.Error(ex.StackTrace);
            }
        }
Exemple #2
0
 void ObjectsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Remove)
     {
         try
         {
             foreach (object item in e.OldItems)
             {
                 RecursoFactibleViewModel UIObject = item as RecursoFactibleViewModel;
                 RecursoFactibleDataAccess.DeleteRecursoFactible(UIObject.GetDataObject());
             }
         }
         catch (Exception ex)
         {
             log.Error(ex.StackTrace);
         }
     }
 }