Example #1
0
        void ObjectsItemEndEdit(IEditableObject sender)
        {
            PeriodicBarraViewModel UIObject = sender as PeriodicBarraViewModel;

            try
            {
                PeriodicBarraDataAccess.UpdatePeriodicBarra(UIObject.GetDataObject());
            }
            catch (Exception ex)
            {
                log.Error(ex.StackTrace);
            }
        }
Example #2
0
 void ObjectsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Remove)
     {
         try
         {
             foreach (object item in e.OldItems)
             {
                 PeriodicBarraViewModel UIObject = item as PeriodicBarraViewModel;
                 PeriodicBarraDataAccess.DeletePeriodicBarra(UIObject.GetDataObject());
             }
         }
         catch (Exception ex)
         {
             log.Error(ex.StackTrace);
         }
     }
 }