コード例 #1
0
 /// <summary> setups the sync logic for member _localizationSource</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncLocalizationSource(IEntityCore relatedEntity)
 {
     if (_localizationSource != relatedEntity)
     {
         DesetupSyncLocalizationSource(true, true);
         _localizationSource = (LocalizationSourceEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity(_localizationSource, new PropertyChangedEventHandler(OnLocalizationSourcePropertyChanged), "LocalizationSource", MonoSoftware.MonoX.DAL.RelationClasses.StaticLocalizationStringRelations.LocalizationSourceEntityUsingIdStatic, true, new string[] {  });
     }
 }
コード例 #2
0
 protected LocalizationStringEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _localizationSource = (LocalizationSourceEntity)info.GetValue("_localizationSource", typeof(LocalizationSourceEntity));
         if (_localizationSource != null)
         {
             _localizationSource.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }
コード例 #3
0
 /// <summary> Removes the sync logic for member _localizationSource</summary>
 /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param>
 /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param>
 private void DesetupSyncLocalizationSource(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity(_localizationSource, new PropertyChangedEventHandler(OnLocalizationSourcePropertyChanged), "LocalizationSource", MonoSoftware.MonoX.DAL.RelationClasses.StaticLocalizationStringRelations.LocalizationSourceEntityUsingIdStatic, true, signalRelatedEntity, "LocalizationString", false, new int[] { (int)LocalizationStringFieldIndex.Id });
     _localizationSource = null;
 }
コード例 #4
0
 /// <summary> setups the sync logic for member _localizationSource</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncLocalizationSource(IEntityCore relatedEntity)
 {
     if(_localizationSource!=relatedEntity)
     {
         DesetupSyncLocalizationSource(true, true);
         _localizationSource = (LocalizationSourceEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _localizationSource, new PropertyChangedEventHandler( OnLocalizationSourcePropertyChanged ), "LocalizationSource", MonoSoftware.MonoX.DAL.RelationClasses.StaticLocalizationStringRelations.LocalizationSourceEntityUsingIdStatic, true, new string[] {  } );
     }
 }
コード例 #5
0
 /// <summary> Removes the sync logic for member _localizationSource</summary>
 /// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param>
 /// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param>
 private void DesetupSyncLocalizationSource(bool signalRelatedEntity, bool resetFKFields)
 {
     this.PerformDesetupSyncRelatedEntity( _localizationSource, new PropertyChangedEventHandler( OnLocalizationSourcePropertyChanged ), "LocalizationSource", MonoSoftware.MonoX.DAL.RelationClasses.StaticLocalizationStringRelations.LocalizationSourceEntityUsingIdStatic, true, signalRelatedEntity, "LocalizationString", false, new int[] { (int)LocalizationStringFieldIndex.Id } );
     _localizationSource = null;
 }
コード例 #6
0
 protected LocalizationStringEntity(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     if(SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _localizationSource = (LocalizationSourceEntity)info.GetValue("_localizationSource", typeof(LocalizationSourceEntity));
         if(_localizationSource!=null)
         {
             _localizationSource.AfterSave+=new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }