public override Excel_multiAsset_compositeOption_subtypeViewModel Clone()
        {
            Excel_multiAsset_vanillaCallPutViewModel clone = new Excel_multiAsset_vanillaCallPutViewModel();

            clone.Excel_underlyingCalcInfoViewModel_ = this.excel_underlyingCalcInfoViewModel_;

            clone.BaseCoupon_ = this.baseCoupon_;

            clone.Excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(this.Excel_underlyingCalcIDViewModel_.Excel_type_);
            clone.Excel_underlyingCalcIDViewModel_.setUnderlying(this.excel_underlyingCalcInfoViewModel_);

            clone.PartiRate_    = this.partiRate_;
            clone.Description_  = this.description_;
            clone.CallPut_      = this.callPut_;
            clone.ExerciseDate_ = this.exerciseDate_;
            clone.PayoffDate_   = this.payoffDate_;
            clone.Strike_       = this.strike_;
            //clone.StrikeValue_ = this.strikeValue_;

            this.descriptionUpdate();

            clone.Description_ = this.description_;

            return(clone);
        }
        public Excel_multiAssetCompositeOptionLoaderView defaultLoaderView()
        {
            Excel_multiAssetCompositeOptionLoaderView subTypeLoaderView;// = new Excel_compositeOptionLoaderView();

            //default;
            Excel_multiAsset_vanillaCallPutViewModel e_mvcpvm = new Excel_multiAsset_vanillaCallPutViewModel();

            e_mvcpvm.DefaultSetting(this);
            e_mvcpvm.setInterfaceViewModel(this);

            e_mvcpvm.setUnderlying(this.excel_underlyingCalcInfoViewModel_);

            subTypeLoaderView = e_mvcpvm.loaderView(this);

            subTypeLoaderView.InterfaceViewModel_ = this;

            subTypeLoaderView.Excel_underlyingCalcInfoViewModel_ = this.excel_underlyingCalcInfoViewModel_;

            return(subTypeLoaderView);
        }
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_multiAsset_vanillaCallPutViewModel;
            this.bindPanel_.DataContext = this.viewModel_;

        }
Пример #4
0
 private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     this.viewModel_             = this.DataContext as Excel_multiAsset_vanillaCallPutViewModel;
     this.bindPanel_.DataContext = this.viewModel_;
 }
        public override Excel_multiAsset_compositeOption_subtypeViewModel Clone()
        {
            Excel_multiAsset_vanillaCallPutViewModel clone = new Excel_multiAsset_vanillaCallPutViewModel();

            clone.Excel_underlyingCalcInfoViewModel_ = this.excel_underlyingCalcInfoViewModel_;

            clone.BaseCoupon_ = this.baseCoupon_;

            clone.Excel_underlyingCalcIDViewModel_ = Excel_underlyingCalcIDViewModel.CreateExcel_underlyingCalcID(this.Excel_underlyingCalcIDViewModel_.Excel_type_);
            clone.Excel_underlyingCalcIDViewModel_.setUnderlying(this.excel_underlyingCalcInfoViewModel_);

            clone.PartiRate_ = this.partiRate_;
            clone.Description_ = this.description_;
            clone.CallPut_ = this.callPut_;
            clone.ExerciseDate_ = this.exerciseDate_;
            clone.PayoffDate_ = this.payoffDate_;
            clone.Strike_ = this.strike_;
            //clone.StrikeValue_ = this.strikeValue_;

            this.descriptionUpdate();

            clone.Description_ = this.description_;

            return clone;
        }
        public Excel_multiAssetCompositeOptionLoaderView defaultLoaderView()
        {
            Excel_multiAssetCompositeOptionLoaderView subTypeLoaderView;// = new Excel_compositeOptionLoaderView();

            //default;
            Excel_multiAsset_vanillaCallPutViewModel e_mvcpvm = new Excel_multiAsset_vanillaCallPutViewModel();

            e_mvcpvm.DefaultSetting(this);
            e_mvcpvm.setInterfaceViewModel(this);

            e_mvcpvm.setUnderlying(this.excel_underlyingCalcInfoViewModel_);

            subTypeLoaderView = e_mvcpvm.loaderView(this);

            subTypeLoaderView.InterfaceViewModel_ = this;

            subTypeLoaderView.Excel_underlyingCalcInfoViewModel_ = this.excel_underlyingCalcInfoViewModel_;

            return subTypeLoaderView;
        }