예제 #1
0
        void ObjectsItemEndEdit(IEditableObject sender)
        {
            RecursoPeriodoViewModel UIObject = sender as RecursoPeriodoViewModel;

            try
            {
                RecursoPeriodoDataAccess.UpdateRecursoPeriodo(UIObject.GetDataObject());
            }
            catch (Exception ex)
            {
                log.Error(ex.StackTrace);
            }
        }
예제 #2
0
 void ObjectsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Remove)
     {
         try
         {
             foreach (object item in e.OldItems)
             {
                 RecursoPeriodoViewModel UIObject = item as RecursoPeriodoViewModel;
                 RecursoPeriodoDataAccess.DeleteRecursoPeriodo(UIObject.GetDataObject());
             }
         }
         catch (Exception ex)
         {
             log.Error(ex.StackTrace);
         }
     }
 }