public static ResultUriInfo CreateResultUriInfo(InstrumentWrapperVM item, DateTime referenceDate)
 {
     return(CreateResultUriInfo(item.InstBaseVM_.ItemCode_, item.InstBaseVM_.ItemType_, referenceDate));
 }
 public static ResultUriInfo CreateResultUriInfo(InstrumentWrapperVM item,DateTime referenceDate)
 {
     return CreateResultUriInfo(item.InstBaseVM_.ItemCode_, item.InstBaseVM_.ItemType_,referenceDate);
 }
        //public static void addInstrument(InstrumentBaseViewModel viewModel_)
        //{
        //    InstPositionWrapperVM wrapperVM = new InstPositionWrapperVM(viewModel_);

        //    PositionMasterLoader loader = positionMasterVM_.loader();

        //}

        //public static void loadPosition()
        //{ 
        //    // 환경 설정 파일 에서 로드함.
        //    // 하지만 지금은 그냥 로드
        //    string path = "D:\\Project File\\OTCDerivativesCalculatorModule\\Project_CSharp\\RiskMonitor\\XmlFile\\book\\mrogen_position\\";
        //    DirectoryInfo dir = new DirectoryInfo(path);

        //    FileInfo[] fileList = dir.GetFiles("*.xml");

        //    foreach (FileInfo item in fileList)
        //    {
        //        InstUriInfo instUri = CreateInstUriInfo(item);
        //        //ResultUriInfo resultUri = CreateResultUriInfo(item);
        //        //InstrumentBaseViewModel instBaseBM = InstrumentBaseViewModel.CreateInstBaseVM(instUri,resultUri);
        //        InstrumentBaseViewModel instBaseBM = InstrumentBaseViewModel.CreateInstBaseVM(instUri);
        //        InstPositionWrapperVM instPositionWrapperVM = new InstPositionWrapperVM(instBaseBM);

        //        InstrumentList_.Add(instPositionWrapperVM);
        //    }
        //}

        public static InstUriInfo CreateInstUriInfo(InstrumentWrapperVM item)
        {
            return CreateInstUriInfo(item.InstBaseVM_.ItemCode_, item.InstBaseVM_.ItemType_);
        }
        //public static void addInstrument(InstrumentBaseViewModel viewModel_)
        //{
        //    InstPositionWrapperVM wrapperVM = new InstPositionWrapperVM(viewModel_);

        //    PositionMasterLoader loader = positionMasterVM_.loader();

        //}

        //public static void loadPosition()
        //{
        //    // 환경 설정 파일 에서 로드함.
        //    // 하지만 지금은 그냥 로드
        //    string path = "D:\\Project File\\OTCDerivativesCalculatorModule\\Project_CSharp\\RiskMonitor\\XmlFile\\book\\mrogen_position\\";
        //    DirectoryInfo dir = new DirectoryInfo(path);

        //    FileInfo[] fileList = dir.GetFiles("*.xml");

        //    foreach (FileInfo item in fileList)
        //    {
        //        InstUriInfo instUri = CreateInstUriInfo(item);
        //        //ResultUriInfo resultUri = CreateResultUriInfo(item);
        //        //InstrumentBaseViewModel instBaseBM = InstrumentBaseViewModel.CreateInstBaseVM(instUri,resultUri);
        //        InstrumentBaseViewModel instBaseBM = InstrumentBaseViewModel.CreateInstBaseVM(instUri);
        //        InstPositionWrapperVM instPositionWrapperVM = new InstPositionWrapperVM(instBaseBM);

        //        InstrumentList_.Add(instPositionWrapperVM);
        //    }
        //}

        public static InstUriInfo CreateInstUriInfo(InstrumentWrapperVM item)
        {
            return(CreateInstUriInfo(item.InstBaseVM_.ItemCode_, item.InstBaseVM_.ItemType_));
        }