public Excel_vanillaFloatingBond_subtypeViewModel() { this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel(); // shcuduleInfoVm 의 default 로드 // 그냥 static에서 가져와서 해도댐 this.scheduleGeneratorVM_ = new ScheduleGeneratorViewModel(); }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as ScheduleGeneratorViewModel; this.frequencyCombo_.ItemsSource = Enum.GetValues(typeof(QLNet.Frequency)); this.businessDayConvCombo_.ItemsSource = Enum.GetValues(typeof(QLNet.BusinessDayConvention)); this.dateGenerationConv_.ItemsSource = Enum.GetValues(typeof(QLNet.DateGeneration.Rule)); this.bindingPanel_.DataContext = this.viewModel_; //this.ScheduleDataGrid_.ItemsSource = this.viewModel_.Dates_; }
private void ScheduleSettingButton_Click(object sender, RoutedEventArgs e) { Window w = new Window(); w.Width = 500; w.Height = 200; ScheduleGeneratorViewModel sgvm = new ScheduleGeneratorViewModel(); w.Content = sgvm.view(); if (w.ShowDialog() == true) { this.viewModel_.ScheduleGeneratorVM_ = sgvm; } else { } }