예제 #1
0
        public void Deserialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer)
        {
            _dataModels.Clear();
            IEnumerable <IModuleDataModel> dataModels = dataModelCollectionSerializer.Read();

            foreach (IModuleDataModel dataModel in dataModels)
            {
                _Add(dataModel, dataModel.ModuleTypeId, dataModel.ModuleInstanceId);
            }
        }
예제 #2
0
 public void Serialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer)
 {
     dataModelCollectionSerializer.Write(_dataModels.Values.ToList());
 }
예제 #3
0
 public void Serialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer)
 {
     dataModelCollectionSerializer.Write(_dataModels.Values.ToList());
 }
예제 #4
0
 public void Serialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer)
 {
     dataModelCollectionSerializer.Write(_dataModels);
 }
예제 #5
0
 public void Deserialize(IModuleDataModelCollectionSerializer dataModelCollectionSerializer)
 {
     _dataModels.Clear();
     IEnumerable<IModuleDataModel> dataModels = dataModelCollectionSerializer.Read();
     foreach (IModuleDataModel dataModel in dataModels) {
         _Add(dataModel, dataModel.ModuleTypeId, dataModel.ModuleInstanceId);
     }
 }