Пример #1
0
        /// <summary>
        /// Transfers all secondary values from DataSource to Control and notifies about
        /// change if needed
        /// </summary>
        public void GetValuesFromDataSource()
        {
            Adaptor.FillObjectWithDataSourceValues(Control);

/*			object DS = ConnectionProvider.ResolveTargetFor (Adaptor);
 *                      if ((Control == null) || (DS == null)) {
 *                              DS = null;
 *                              return;
 *                      }
 *
 *                      foreach (MappedProperty mp in Values) {
 *                              if (mp.IsSecondaryTargeted == true)
 *                                      mp.AssignValueToObject (EDataDirection.FromDataSourceToControl, DS, Control);
 *                      }
 *                      DS = null;*/
        }