public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface      serial_Excel_interface      = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_structuredBond serial_Excel_structuredBond = serial_Excel_interface.Excel_structuredBond_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_structuredBond.Excel_issueInfo_;
            string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr;

            this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype);
            this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo);

            FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_structuredBond.Excel_underlyingCalcInfo_;
            string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;

            this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            FpmlSerializedCSharp.Excel_couponScheduleList serial_excel_couponScheduleList = serial_Excel_structuredBond.Excel_couponScheduleList_;
            string excel_couponScheduleListtype = serial_excel_couponScheduleList.Excel_type_.ValueStr;

            this.excel_couponScheduleListViewModel_ = Excel_couponScheduleListViewModel.CreateExcel_couponScheduleList(excel_couponScheduleListtype);
            this.excel_couponScheduleListViewModel_.setFromSerial(serial_excel_couponScheduleList);

            FpmlSerializedCSharp.Excel_structuredBond_subtype serial_excel_structuredBond_subtype = serial_Excel_structuredBond.Excel_structuredBond_subtype_;
            string excel_structuredBond_subtypetype = serial_excel_structuredBond_subtype.Excel_type_.ValueStr;

            this.excel_structuredBond_subtypeViewModel_ = Excel_structuredBond_subtypeViewModel.CreateExcel_structuredBond_subtype(excel_structuredBond_subtypetype);
            this.excel_structuredBond_subtypeViewModel_.setFromSerial(serial_excel_structuredBond_subtype);
        }
        public void setScheduleFromClone(Excel_couponScheduleListViewModel e_csLVM)
        {
            this.excel_couponScheduleViewModel_.Clear();

            foreach (var item in e_csLVM.excel_couponScheduleViewModel_)
            {
                this.excel_couponScheduleViewModel_.Add(item);
            }
        }
        public Excel_structuredBondViewModel()
        {
            this.excel_issueInfoViewModel_ = new Excel_noteInfoViewModel();
            this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel();

            this.excel_underlyingCalcInfoViewModel_.EffectiveDate_ = this.excel_issueInfoViewModel_.EffectiveDate_;

            this.excel_issueInfoViewModel_.PropertyChanged +=
                this.excel_underlyingCalcInfoViewModel_.issueInfoObserver;

            this.excel_couponScheduleListViewModel_ = new Excel_couponScheduleListViewModel();

            //this.excel_issueInfoViewModel_.PropertyChanged
            //    += new PropertyChangedEventHandler(this.excel_couponScheduleListViewModel_.ScheduleInitialDateObserver);

            //초기 값 set
            //this.excel_couponScheduleListViewModel_.ScheduleInitialDate_ = this.excel_issueInfoViewModel_.EffectiveDate_;

            //this.view_ = new Excel_vanillaFloatingBondView();
            //this.view_.DataContext = this;
        }
Esempio n. 4
0
        public Excel_structuredBondViewModel()
        {
            this.excel_issueInfoViewModel_          = new Excel_noteInfoViewModel();
            this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel();

            this.excel_underlyingCalcInfoViewModel_.EffectiveDate_ = this.excel_issueInfoViewModel_.EffectiveDate_;

            this.excel_issueInfoViewModel_.PropertyChanged +=
                this.excel_underlyingCalcInfoViewModel_.issueInfoObserver;

            this.excel_couponScheduleListViewModel_ = new Excel_couponScheduleListViewModel();

            //this.excel_issueInfoViewModel_.PropertyChanged
            //    += new PropertyChangedEventHandler(this.excel_couponScheduleListViewModel_.ScheduleInitialDateObserver);

            //초기 값 set
            //this.excel_couponScheduleListViewModel_.ScheduleInitialDate_ = this.excel_issueInfoViewModel_.EffectiveDate_;

            //this.view_ = new Excel_vanillaFloatingBondView();
            //this.view_.DataContext = this;
        }
Esempio n. 5
0
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.viewModel_ = this.DataContext as Excel_couponScheduleListViewModel;
     this.CouponScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_couponScheduleViewModel_;
 }
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.viewModel_ = this.DataContext as Excel_couponScheduleListViewModel;
     this.CouponScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_couponScheduleViewModel_;
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
     FpmlSerializedCSharp.Excel_structuredBond serial_Excel_structuredBond = serial_Excel_interface.Excel_structuredBond_;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_structuredBond.Excel_issueInfo_;
     string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr;
     this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype);
     this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo);
     
     FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_structuredBond.Excel_underlyingCalcInfo_;
     string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;
     this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
     this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);
     
     FpmlSerializedCSharp.Excel_couponScheduleList serial_excel_couponScheduleList = serial_Excel_structuredBond.Excel_couponScheduleList_;
     string excel_couponScheduleListtype = serial_excel_couponScheduleList.Excel_type_.ValueStr;
     this.excel_couponScheduleListViewModel_ = Excel_couponScheduleListViewModel.CreateExcel_couponScheduleList(excel_couponScheduleListtype);
     this.excel_couponScheduleListViewModel_.setFromSerial(serial_excel_couponScheduleList);
     
     FpmlSerializedCSharp.Excel_structuredBond_subtype serial_excel_structuredBond_subtype = serial_Excel_structuredBond.Excel_structuredBond_subtype_;
     string excel_structuredBond_subtypetype = serial_excel_structuredBond_subtype.Excel_type_.ValueStr;
     this.excel_structuredBond_subtypeViewModel_ = Excel_structuredBond_subtypeViewModel.CreateExcel_structuredBond_subtype(excel_structuredBond_subtypetype);
     this.excel_structuredBond_subtypeViewModel_.setFromSerial(serial_excel_structuredBond_subtype);
     
 }
        public void setScheduleFromClone(Excel_couponScheduleListViewModel e_csLVM)
        {
            this.excel_couponScheduleViewModel_.Clear();

            foreach (var item in e_csLVM.excel_couponScheduleViewModel_)
            {
                this.excel_couponScheduleViewModel_.Add(item);
            }

        }