Beispiel #1
0
        // command execution indicator methods:
        protected virtual bool CanExecute_SaveRecordCommand()
        {
            bool condition1 = _records.Any(record => record.GetIdCode() == PresentedRecord.GetPresentedIdCode());
            bool condition2 = PresentedRecord.IsSaveable();

            return(!condition1 && condition2);
        }
Beispiel #2
0
 protected virtual bool CanExecute_UpdateCommand()
 {
     return(SelectedRecord != null && !PresentedRecord.IsEqualToSelectedRecord(SelectedRecord) && PresentedRecord.IsSaveable());
 }