Esempio n. 1
0
 private bool IsModified(HTLCHAIN record)
 {
     //Type-specific routine that takes into account relationships that should also be considered
     //when deciding if there are unsaved changes.  The entity properties also return true if the
     //record is new or deleted.
     return(record.IsModified(_context));
 }
Esempio n. 2
0
 void SetBindings()
 {
     //If the route list is filtered, there will be rows in the binding source
     //that are not visible, and they can become selected if the last visible row
     //is deleted, so handle that by checking rowcount.
     if (BindingSource.Current == null)
     {
         _selectedRecord = null;
         SetReadOnly(true);
     }
     else
     {
         _selectedRecord = ((HTLCHAIN)BindingSource.Current);
         SetReadOnly(false);
         SetReadOnlyKeyFields(true);
     }
     ErrorProvider.Clear();
 }