Esempio n. 1
0
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_vanillaFloatingBond_simpleViewModel;

            this.subScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_vanillaFloatingBond_subScheduleViewModel_;

            this.scheduleGenGrid_.Children.Clear();
            this.scheduleGenGrid_.Children.Add(this.viewModel_.ScheduleGeneratorVM_.view());

            //this.viewModel_.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(viewModel_PropertyChanged);

            //this.ScheduleDataGrid_.ItemsSource = viewModel_.SubScheduleDataList_;

            //GenInformationPanel_.DataContext = this.viewModel_;

            //EffectiveDatePicker_.DataContext = this.viewModel_;
        }
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_vanillaFloatingBond_simpleViewModel;

            this.subScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_vanillaFloatingBond_subScheduleViewModel_;

            this.scheduleGenGrid_.Children.Clear();
            this.scheduleGenGrid_.Children.Add(this.viewModel_.ScheduleGeneratorVM_.view());

            //this.viewModel_.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(viewModel_PropertyChanged);

            //this.ScheduleDataGrid_.ItemsSource = viewModel_.SubScheduleDataList_;

            //GenInformationPanel_.DataContext = this.viewModel_;

            //EffectiveDatePicker_.DataContext = this.viewModel_;

        }