// ---------------------------------------------------------------------- // 데이터를 로드하고, 기본 골격을 잡는 곳 // ---------------------------------------------------------------------- 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 IndexUnderInfoViewModel; this.IndexUnderListDataGrid_.ItemsSource = this.viewModel_.IndexUnderList_; //scheduleDataGrid_.ItemsSource = this.viewModel_.RedemptionEvents_; //this.PayoffStackPanel_.Children.Add(this.viewModel_.ReturnCalculationViewModel_.ReturnCalculationView_); }
public void initializeParameter(IndexUnderInfoViewModel indexUnderInfoVM) { foreach (var item in indexUnderInfoVM.IndexUnderList_) { string typeStr = item.Type_; Underlying_paraViewModel vm = Underlying_paraViewModel.CreateUnderlying_para("geometricBM"); vm.KrCode_ = item.KRCode_; vm.UnderName_ = item.Name_; } this.correlationInfo_paraViewModel_ = new CorrelationInfo_paraViewModel(); this.correlationInfo_paraViewModel_.initializeParameter(indexUnderInfoVM); }
// ---------------------------------------------------------------------- // 데이터를 로드하고, 기본 골격을 잡는 곳 // ---------------------------------------------------------------------- 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 void initializeParameter(IndexUnderInfoViewModel indexUnderInfoVM) { int count = indexUnderInfoVM.IndexUnderList_.Count; this.correlation_paraViewModel_ = new ObservableCollection <Correlation_paraViewModel>(); // comination 계산 //for (int i = 0; i < length; i++) //{ //} if (count == 2) { Correlation_paraViewModel corrVM = new Correlation_paraViewModel(); corrVM.First_ = indexUnderInfoVM.IndexUnderList_[0].Name_; corrVM.Second_ = indexUnderInfoVM.IndexUnderList_[1].Name_; this.correlation_paraViewModel_.Add(corrVM); } }
public void initializeParameter(IndexUnderInfoViewModel indexUnderInfoVM) { int count = indexUnderInfoVM.IndexUnderList_.Count; this.correlation_paraViewModel_ = new ObservableCollection<Correlation_paraViewModel>(); // comination 계산 //for (int i = 0; i < length; i++) //{ //} if(count==2) { Correlation_paraViewModel corrVM = new Correlation_paraViewModel(); corrVM.First_ = indexUnderInfoVM.IndexUnderList_[0].Name_; corrVM.Second_ = indexUnderInfoVM.IndexUnderList_[1].Name_; this.correlation_paraViewModel_.Add(corrVM); } }