Exemplo n.º 1
0
        public Excel_parameterViewModel()
        {
            this.simulationNum_ = "10000"; //default;

            if (this.underlyingModelSetting_ == null)
            {
                //default setting
                this.underlyingModelSetting_ = ProgramVariable.UnderlyingModelSetting_;
            }
        }
        public override void instrumentEventObserver(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            Excel_underlyingCalcInfoViewModel e_ucivm = sender as Excel_underlyingCalcInfoViewModel;

            UnderlyingModelSetting ums = new UnderlyingModelSetting();

            foreach (Excel_underlyingInfoViewModel item in e_ucivm.Excel_underlyingInfoViewModel_)
            {
                this.excel_underlyingCalcInfo_paraViewModel_.Excel_underlyingInfo_paraViewModel_
                .Add(ums.getUnderlyingParameterModel(item));
            }

            // 다른건..? ex) corr
        }
        public override void instrumentEventObserver(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            Excel_underlyingCalcInfoViewModel e_ucivm = sender as Excel_underlyingCalcInfoViewModel;

            UnderlyingModelSetting ums = new UnderlyingModelSetting();

            foreach (Excel_underlyingInfoViewModel item in e_ucivm.Excel_underlyingInfoViewModel_)
	        {
                this.excel_underlyingCalcInfo_paraViewModel_.Excel_underlyingInfo_paraViewModel_
                    .Add(ums.getUnderlyingParameterModel(item));
	        }
            
            // 다른건..? ex) corr
        }
        public Excel_parameterViewModel() 
        {
            this.simulationNum_ = "10000"; //default;

            if (this.underlyingModelSetting_ == null)
            { 
                //default setting
                this.underlyingModelSetting_ = ProgramVariable.UnderlyingModelSetting_;
            }
        }