// ---------------------------------------------------------------------- // 데이터를 로드하고, 기본 골격을 잡는 곳 // ---------------------------------------------------------------------- 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); }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as StandardInstViewModel; this.InformationGrid_.Children.Clear(); this.UnderlyingGrid_.Children.Clear(); this.PayoffGrid_.Children.Clear(); this.InformationGrid_.Children.Add(this.viewModel_.IssueInfoViewModel_.View_); this.UnderlyingGrid_.Children.Add(this.viewModel_.UnderlyingViewModel_.View_); this.PayoffGrid_.Children.Add(this.viewModel_.PayoffViewModel_.View_); }
// ---------------------------------------------------------------------- // 데이터를 로드하고, 기본 골격을 잡는 곳 // ---------------------------------------------------------------------- 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; }