示例#1
0
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_standardParaViewModel;

            this.UnderlyingParaInfoGrid_.Children.Clear();
            this.UnderlyingParaInfoGrid_.Children.Add(this.viewModel_.Excel_underlyingCalcInfo_paraViewModel_.view());

            this.DiscountCurveInfoGrid_.Children.Clear();
            this.DiscountCurveInfoGrid_.Children.Add(this.viewModel_.Excel_discountCurve_paraViewModel_.view());
        }
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_standardParaViewModel;

            this.UnderlyingParaInfoGrid_.Children.Clear();
            this.UnderlyingParaInfoGrid_.Children.Add(this.viewModel_.Excel_underlyingCalcInfo_paraViewModel_.view());

            this.DiscountCurveInfoGrid_.Children.Clear();
            this.DiscountCurveInfoGrid_.Children.Add(this.viewModel_.Excel_discountCurve_paraViewModel_.view());
        }
示例#3
0
        public override void buildParameterFromInstrument(DateTime refDate)
        {
            //xml load
            //this.excel_interfaceViewModel_.load

            Excel_standardParaViewModel e_spvm = this.Excel_parameterViewModel_ as Excel_standardParaViewModel; //new Excel_standardParaViewModel();

            e_spvm.ItemCode_ = this.masterInformationViewModel_.Item_code_;

            UnderlyingModelSettingManager umsm = new UnderlyingModelSettingManager();

            e_spvm.Excel_underlyingCalcInfo_paraViewModel_.Excel_underlyingInfo_paraViewModel_.Clear();

            Excel_underlyingCalcInfo_paraViewModel e_ucivm = umsm.underInfo_para(this.excel_interfaceViewModel_.Excel_underlyingCalcInfoViewModel_);

            e_spvm.Excel_underlyingCalcInfo_paraViewModel_ = e_ucivm;

            this.excel_parameterViewModel_ = e_spvm;
        }