Exemple #1
0
        // ----------------------------------------------------------------------
        // 데이터를 로드하고, 기본 골격을 잡는 곳
        // ----------------------------------------------------------------------

        public override void initializeParameter(InstrumentViewModel instrumentViewModel)
        {
            StandardInstViewModel   standInstVM      = instrumentViewModel as StandardInstViewModel;
            IndexUnderInfoViewModel indexUnderInfoVM = standInstVM.UnderlyingViewModel_ as IndexUnderInfoViewModel;

            this.underlyingInfo_paraViewModel_ = new UnderlyingInfo_paraViewModel();
            this.underlyingInfo_paraViewModel_.initializeParameter(indexUnderInfoVM);
        }
Exemple #2
0
        // ----------------------------------------------------------------------
        // 데이터를 로드하고, 기본 골격을 잡는 곳
        // ----------------------------------------------------------------------

        public override void initializeParameter(InstrumentViewModel instrumentViewModel)
        {
            StandardInstViewModel   standInstVM      = instrumentViewModel as StandardInstViewModel;
            IndexUnderInfoViewModel indexUnderInfoVM = standInstVM.UnderlyingViewModel_ as IndexUnderInfoViewModel;

            this.calculationAmountViewModel_ = new CalculationAmountViewModel();

            this.underlyingInfo_paraViewModel_ = new UnderlyingInfo_paraViewModel();
            this.underlyingInfo_paraViewModel_.initializeParameter(indexUnderInfoVM);

            this.discountCurve_paraViewModel_ = new DiscountCurve_paraViewModel();


            this.view_             = new Standard_paraView();
            this.view_.DataContext = this;
        }
        protected override void loadInstrumentFromXml(XmlNode node)
        {
            //event를 받아서 할거라 constructor 로 올림
            this.view_.DataContext = this;

            //string
            FpmlSerializedCSharp.Root           serial_root     = new FpmlSerializedCSharp.Root(node);
            FpmlSerializedCSharp.InstrumentInfo serial_instInfo = serial_root.Instrument_.InstrumentInfo_;
            //FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_root.Instrument_.InstPositionInfo_;

            InstrumentViewModel vm1 = InstrumentViewModel.CreateInstVM(serial_instInfo);

            vm1.setFromSerial(serial_instInfo);

            //InstPositionInfoViewModel vm2 = new InstPositionInfoViewModel();
            //vm2.setFromSerial(serial_instPositionInfo);

            this.InstrumentViewModel_ = vm1;
            //this.InstPositionInfoViewModel_ = vm2;

            //InstrumentViewModel_.setFromXml(node);
        }
 public virtual void setView(InstrumentViewModel instVM) { }
Exemple #5
0
 public static InstrumentViewModel CreateInstVM(XmlNode node)
 {
     FpmlSerializedCSharp.InstrumentInfo serial_instInfo = new FpmlSerializedCSharp.InstrumentInfo(node);
     return(InstrumentViewModel.CreateInstVM(serial_instInfo));
 }
 public virtual void setView(InstrumentViewModel instVM)
 {
 }
 public abstract void initializeParameter(InstrumentViewModel instrumentViewModel);
        // ----------------------------------------------------------------------
        // 데이터를 로드하고, 기본 골격을 잡는 곳
        // ----------------------------------------------------------------------

        public override void initializeParameter(InstrumentViewModel instrumentViewModel)
        {
            StandardInstViewModel standInstVM = instrumentViewModel as StandardInstViewModel;
            IndexUnderInfoViewModel indexUnderInfoVM = standInstVM.UnderlyingViewModel_ as IndexUnderInfoViewModel;

            this.calculationAmountViewModel_ = new CalculationAmountViewModel();

            this.underlyingInfo_paraViewModel_ = new UnderlyingInfo_paraViewModel();
            this.underlyingInfo_paraViewModel_.initializeParameter(indexUnderInfoVM);

            this.discountCurve_paraViewModel_ = new DiscountCurve_paraViewModel();


            this.view_ = new Standard_paraView();
            this.view_.DataContext = this;

        }
 public override void initializeParameter(InstrumentViewModel instrumentViewModel)
 {
     throw new NotImplementedException();
 }
 public override void initializeParameter(InstrumentViewModel instrumentViewModel)
 {
     throw new NotImplementedException();
 }
 public abstract void initializeParameter(InstrumentViewModel instrumentViewModel);