private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_interestRateCurveLoaderViewModel;
            this.RateDataGrid_.ItemsSource = this.viewModel_.RateDataViewModel_;

            this.curveListView_.ItemsSource = this.viewModel_.CurveHeaderInfoDataList_;

            //this.viewModel_ = this.DataContext as Excel_scheduleListViewModel;
            //this.ScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_scheduleViewModel_;
        }
Exemple #2
0
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_interestRateCurveLoaderViewModel;
            this.RateDataGrid_.ItemsSource = this.viewModel_.RateDataViewModel_;

            this.curveListView_.ItemsSource = this.viewModel_.CurveHeaderInfoDataList_;

            //this.viewModel_ = this.DataContext as Excel_scheduleListViewModel;
            //this.ScheduleDataGrid_.ItemsSource = this.viewModel_.Excel_scheduleViewModel_;
        }
        // curve para( ex. KRW , USD , VIRTUAL BOND)가 들어와서 박혀 있음.
        // ( data만 수정 할거임 )
        private void dataEditBtn_Click(object sender, RoutedEventArgs e)
        {
            Window w = new Window();

            w.Width  = 500;
            w.Height = 200;

            Excel_yieldCurveViewModel e_ycvm = this.DiscountCurveDataGrid_.SelectedItem as Excel_yieldCurveViewModel;

            Excel_interestRateCurveLoaderViewModel e_irclvm = new Excel_interestRateCurveLoaderViewModel();

            e_irclvm.loadCurveHeaderList(ProgramVariable.ReferenceDate_);

            e_irclvm.Excel_yieldCurveViewModel_ = e_ycvm;

            // selected vm 에 적용시켜줌

            w.Content = e_irclvm.view();

            if (w.ShowDialog() == true)
            {
                //e_ycvm.Excel_interpolationViewModel_ = e_irclvm.Excel_interpolationViewModel_;
                e_ycvm.Excel_rateDataViewModel_ = e_irclvm.RateDataViewModel_;

                //clone 복사

                //e_ycvm =
            }
            else
            {
            }


            //this.SelectedViewModel_.Excel_rateDataViewModel_
            //    = e_irclv.RateDataViewModel_;

            //e_irclvm.RateDataGrid_.ItemsSource = this.viewModel_.Excel_CurveViewModel_.Excel_rateDataViewModel_;
        }
        // curve para( ex. KRW , USD , VIRTUAL BOND)가 들어와서 박혀 있음. 
        // ( data만 수정 할거임 )
        private void dataEditBtn_Click(object sender, RoutedEventArgs e)
        {

            Window w = new Window();
            w.Width = 500;
            w.Height = 200;

            Excel_yieldCurveViewModel e_ycvm = this.DiscountCurveDataGrid_.SelectedItem as Excel_yieldCurveViewModel;

            Excel_interestRateCurveLoaderViewModel e_irclvm = new Excel_interestRateCurveLoaderViewModel();

            e_irclvm.loadCurveHeaderList(ProgramVariable.ReferenceDate_);

            e_irclvm.Excel_yieldCurveViewModel_ = e_ycvm;

            // selected vm 에 적용시켜줌

            w.Content = e_irclvm.view();

            if (w.ShowDialog() == true)
            {
                //e_ycvm.Excel_interpolationViewModel_ = e_irclvm.Excel_interpolationViewModel_;
                e_ycvm.Excel_rateDataViewModel_ = e_irclvm.RateDataViewModel_;

                //clone 복사

                //e_ycvm = 
                
            }
            else
            {

            }


            //this.SelectedViewModel_.Excel_rateDataViewModel_
            //    = e_irclv.RateDataViewModel_;

            //e_irclvm.RateDataGrid_.ItemsSource = this.viewModel_.Excel_CurveViewModel_.Excel_rateDataViewModel_;
        }