Exemple #1
0
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_hifiveViewModel;

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

            //this.IssueInfoGrid_.Children.Clear();
            this.IssueInfoGrid_.Children.Add(this.viewModel_.Excel_issueInfoViewModel_.view());
            this.UnderlyingInfoGrid_.Children.Add(this.viewModel_.Excel_underlyingCalcInfoViewModel_.view());

            // 여기는 itemsource 에 더해야함 list임
            //this.UnderlyingCalcGrid_.Children.Add(this.viewModel_.Excel_underlyingCalcIDViewModel_.View_);

            // 이건 선택해서 할거임 . default로 뭘 넣나..?
            // 우선은 default로 stepDownki을 넣자

            //this.SubTypeGrid_.Children.Add(this.viewModel_.Excel_hifive_subtypeViewModel_.View_);

            this.ScheduleGrid_.Children.Add(this.viewModel_.Excel_scheduleListViewModel_.view());

            //Excel_kiEventCalculationLoaderView e_keclv = new Excel_kiEventCalculationLoaderView();
            Excel_kiEventCalculationLoaderView e_keclv = this.viewModel_.Excel_kiEventCalculationViewModel_.loaderView() as Excel_kiEventCalculationLoaderView;

            this.kiEventCalculationGrid_.Children.Add(e_keclv);

            //this.KiScheduleGrid_.Children.Add(this.viewModel_.Excel_kiScheduleListViewModel_.view());

            // para가 없으면 만듬
            //this.paraViewModel_ = new Excel_standardParaViewModel();

            //this.viewModel_.Excel_underlyingCalcInfoViewModel_.PropertyChanged +=
            //    new System.ComponentModel.PropertyChangedEventHandler(this.paraViewModel_.T
        }
        public Control loaderView()
        {
            Excel_kiEventCalculationLoaderView kiEventCalcLoaderView = new Excel_kiEventCalculationLoaderView();

            kiEventCalcLoaderView.Excel_underlyingCalcInfoViewModel_ = this.Excel_underlyingCalcInfoViewModel_;

            kiEventCalcLoaderView.initialize(this);

            kiEventCalcLoaderView.selectedKICalcGrid_.Children.Add(this.view());

            return(kiEventCalcLoaderView);
        }
        public Control loaderView()
        {
            Excel_kiEventCalculationLoaderView kiEventCalcLoaderView = new Excel_kiEventCalculationLoaderView();

            kiEventCalcLoaderView.Excel_underlyingCalcInfoViewModel_ = this.Excel_underlyingCalcInfoViewModel_;

            kiEventCalcLoaderView.initialize(this);

            kiEventCalcLoaderView.selectedKICalcGrid_.Children.Add(this.view());

            return kiEventCalcLoaderView;
        }