private void hirachyLoop(FpmlSerializedCSharp.InstHirachyInfo serial_Hirachy, HirachyInstrumentVM roop_ExploreHirachyInstWrapper) { foreach (var item in serial_Hirachy.InstHirachyInfo_) { string itemCode = item.Code_.ValueStr; string itemType = item.Type_.ValueStr; InstUriInfo instUri = bookInfoVM_.InstUri(item); //ResultUriInfo resultUri = bookInfoVM_.resultUri(item); //FileInfo fileInfo = new FileInfo(itemCode + "_" + itemType + ".xml"); InstrumentBaseViewModel instBaseVM = InstrumentBaseViewModel.CreateInstBaseVM(instUri); //ExploreHirachyInstrumentVMWrapper hirachyInstVMWrapper // = new ExploreHirachyInstrumentVMWrapper(itemCode, itemType, instBaseVM); //ExploreHirachyVMWrapper hirachyInstVMWrapper = ExploreHirachyVMWrapper.CreateExploreHirachyWrapper(instUri, resultUri, instBaseVM); ExploreHirachyVMWrapper hirachyInstVMWrapper = ExploreHirachyVMWrapper.CreateExploreHirachyWrapper(instBaseVM); this.hirachyLoop(item, hirachyInstVMWrapper); roop_ExploreHirachyInstWrapper.addHirachInstrumentVM(hirachyInstVMWrapper); } }
public void addHirachInstrumentVM(HirachyInstrumentVM hirachyInstVM) { HirachyInstVMList_.Add(hirachyInstVM); }