Пример #1
0
 protected virtual void SyncEnabled(DAEClient.DataLink dataLink, DAEClient.DataSet dataSet)
 {
     if (!DesignMode)
     {
         Enabled = _link.Active && _link.CanModify();
     }
 }
Пример #2
0
 protected virtual void FieldChanged(DAEClient.DataLink dataLink, DAEClient.DataSet dataSet, DAEClient.DataField field)
 {
     if ((_link.DataField != null) && _link.DataField.HasValue())
     {
         DataValue = _link.DataField.AsString;
     }
     else
     {
         DataValue = null;
     }
 }
Пример #3
0
 protected virtual void SaveRequested(DAEClient.DataLink link, DAEClient.DataSet dataSet)
 {
     if (_link.DataField != null)
     {
         if (_dataValue == null)
         {
             _link.DataField.ClearValue();
         }
         else
         {
             _link.DataField.AsString = _dataValue;
         }
     }
 }