private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_vanillaFloatingBondViewModel;

            this.IssueInfoGrid_.Children.Clear();
            this.IssueInfoGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view());

            this.UnderlyingInfoGrid_.Children.Clear();
            this.UnderlyingInfoGrid_.Children.Add(this.viewModel_.Excel_underlyingCalcInfoViewModel_.view());

            this.couponScheduleGrid_.Children.Clear();
            this.couponScheduleGrid_.Children.Add(this.viewModel_.Excel_vanillaFloatingCouponScheduleListViewModel_.view());
        }
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_vanillaFloatingBondViewModel;

            this.IssueInfoGrid_.Children.Clear();
            this.IssueInfoGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view());

            this.UnderlyingInfoGrid_.Children.Clear();
            this.UnderlyingInfoGrid_.Children.Add(this.viewModel_.Excel_underlyingCalcInfoViewModel_.view());

            this.couponScheduleGrid_.Children.Clear();
            this.couponScheduleGrid_.Children.Add(this.viewModel_.Excel_vanillaFloatingCouponScheduleListViewModel_.view());
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg;
            FpmlSerializedCSharp.Excel_vanillaFloatingRateSwapLeg serial_Excel_vanillaFloatingRateSwapLeg = serial_Excel_swapLeg.Excel_vanillaFloatingRateSwapLeg_;
        
            //FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_vanillaFloatingRateSwapLeg.Excel_swapLegInfo_;
            ////string excel_swapLegInfotype = serial_excel_swapLegInfo.Excel_type_.ValueStr;
            //this.excel_swapLegInfoViewModel_ = new Excel_swapLegInfoViewModel();
            //this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo);

            FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_vanillaFloatingRateSwapLeg.Excel_interface_;
            string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr;
            this.excel_vanillaFloatingBondViewModel_ = new Excel_vanillaFloatingBondViewModel();//.CreateExcel_vanillaFloatingBond(excel_vanillaFloatingBondtype);
            this.excel_vanillaFloatingBondViewModel_.setFromSerial(serial_excel_interface);
            
        }
Пример #4
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg;
            FpmlSerializedCSharp.Excel_vanillaFloatingRateSwapLeg serial_Excel_vanillaFloatingRateSwapLeg = serial_Excel_swapLeg.Excel_vanillaFloatingRateSwapLeg_;

            //FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_vanillaFloatingRateSwapLeg.Excel_swapLegInfo_;
            ////string excel_swapLegInfotype = serial_excel_swapLegInfo.Excel_type_.ValueStr;
            //this.excel_swapLegInfoViewModel_ = new Excel_swapLegInfoViewModel();
            //this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo);

            FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_vanillaFloatingRateSwapLeg.Excel_interface_;
            string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr;

            this.excel_vanillaFloatingBondViewModel_ = new Excel_vanillaFloatingBondViewModel();//.CreateExcel_vanillaFloatingBond(excel_vanillaFloatingBondtype);
            this.excel_vanillaFloatingBondViewModel_.setFromSerial(serial_excel_interface);
        }