public override void setInterfaceViewModel(Excel_compositeOptionViewModel e_covm)
 {
     this.exerciseDate_   = e_covm.Excel_issueInfoViewModel_.MaturityDate_;
     this.payoffDate_     = e_covm.PayoffDate_;
     this.underlyingCode_ = e_covm.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_[0].KrCode_;
     //this.DefaultSetting(e_covm);
 }
 public override void DefaultSetting(Excel_compositeOptionViewModel e_covm)
 {
     this.callPut_    = "Call";
     this.baseCoupon_ = "0.0";
     this.strike_     = "100.0";
     //this.strikeValue_ = Convert.ToDouble(this.strike_) * this.baseUnderlyingValue_;
     this.coupon_      = "0.0";
     this.couponValue_ = "0.0";
 }
 public override void DefaultSetting(Excel_compositeOptionViewModel e_covm)
 {
     this.callPut_    = CallPutEnum.Call;
     this.partiRate_  = "100.0";
     this.strike_     = "100.0";
     this.baseCoupon_ = "0.0";
     //this.strikeValue_ = Convert.ToDouble(this.strike_) * this.baseUnderlyingValue_;
     this.baseUnderlyingValue_ = Convert.ToDouble(e_covm.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_[0].BasePrice_);
     //double basePrice =
     this.strikeValue_ = Convert.ToDouble(this.strike_) * this.baseUnderlyingValue_ / 100.0;
 }
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_compositeOptionViewModel;

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

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

            this.optionSubTypeListView_.ItemsSource = this.viewModel_.Excel_compositeOption_subtypeViewModelList_;
        }
        private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            this.viewModel_ = this.DataContext as Excel_compositeOptionViewModel;

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

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

            this.optionSubTypeListView_.ItemsSource = this.viewModel_.Excel_compositeOption_subtypeViewModelList_;

        }
        public override void DefaultSetting(Excel_compositeOptionViewModel e_covm)
        {
            this.inOut_      = InOutEnum.Out;
            this.baseCoupon_ = "0.0";
            this.strike_     = "100.0";

            this.baseUnderlyingValue_ = Convert.ToDouble(e_covm.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_[0].BasePrice_);

            this.strikeValue_ = Convert.ToDouble(this.strike_) * this.baseUnderlyingValue_ / 100.0;
            this.partiRate_   = "100.0";
            this.barrier_     = "120.0";

            this.barrierValue_      = Convert.ToDouble(this.barrier_) * this.baseUnderlyingValue_ / 100.0;
            this.rebateCoupon_      = "0.0";
            this.rebateCouponValue_ = "0.0";

            this.observationStartDate_ = e_covm.Excel_issueInfoViewModel_.EffectiveDate_;
            this.observationEndDate_   = e_covm.Excel_issueInfoViewModel_.MaturityDate_;
        }
        public override Excel_compositeOptionLoaderView loaderView(Excel_compositeOptionViewModel e_covm)
        {
            Excel_compositeOptionLoaderView subTypeLoaderView = new Excel_compositeOptionLoaderView();

            subTypeLoaderView.InterfaceViewModel_ = e_covm;

            subTypeLoaderView.initialize(this);

            try
            {
                this.BaseUnderlyingValue_ = Convert.ToDouble(this.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_[0].BasePrice_);
            }
            catch (Exception) { }

            //subTypeLoaderView. = this.Excel_underlyingCalcInfoViewModel_;

            subTypeLoaderView.selectedOptionGrid_.Children.Add(this.view());

            return(subTypeLoaderView);
        }
        public override void setInterfaceViewModel(Excel_compositeOptionViewModel e_covm)
        {
            this.exerciseDate_ = e_covm.Excel_issueInfoViewModel_.MaturityDate_;
            this.payoffDate_ = e_covm.PayoffDate_;
            this.underlyingCode_ = e_covm.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_[0].KrCode_;
            //this.DefaultSetting(e_covm);

        }
 public override Excel_compositeOptionLoaderView loaderView(Excel_compositeOptionViewModel e_covm)
 {
     throw new NotImplementedException();
 }
 public abstract void setInterfaceViewModel(Excel_compositeOptionViewModel e_covm);
        public override void DefaultSetting(Excel_compositeOptionViewModel e_covm)
        {
            this.inOut_ = InOutEnum.Out;
            this.baseCoupon_ = "0.0";
            this.strike_ = "100.0";

            this.baseUnderlyingValue_ = Convert.ToDouble(e_covm.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_[0].BasePrice_);

            this.strikeValue_ = Convert.ToDouble(this.strike_) * this.baseUnderlyingValue_ / 100.0;
            this.partiRate_ = "100.0";
            this.barrier_ = "120.0";

            this.barrierValue_ = Convert.ToDouble(this.barrier_) * this.baseUnderlyingValue_ / 100.0;
            this.rebateCoupon_ = "0.0";
            this.rebateCouponValue_ = "0.0";

            this.observationStartDate_ = e_covm.Excel_issueInfoViewModel_.EffectiveDate_;
            this.observationEndDate_ = e_covm.Excel_issueInfoViewModel_.MaturityDate_;

        }
 public override Excel_compositeOptionLoaderView loaderView(Excel_compositeOptionViewModel e_covm)
 {
     throw new NotImplementedException();
 }
Beispiel #13
0
 public abstract void setInterfaceViewModel(Excel_compositeOptionViewModel e_covm);
Beispiel #14
0
 public abstract Excel_compositeOptionLoaderView loaderView(Excel_compositeOptionViewModel e_covm);
Beispiel #15
0
 // 즐겨찾기 setting
 public abstract void DefaultSetting(Excel_compositeOptionViewModel e_covm);
 // 즐겨찾기 setting
 public abstract void DefaultSetting(Excel_compositeOptionViewModel e_covm);
 public abstract Excel_compositeOptionLoaderView loaderView(Excel_compositeOptionViewModel e_covm);
 public override void DefaultSetting(Excel_compositeOptionViewModel e_covm)
 {
     this.callPut_ = CallPutEnum.Call;
     this.partiRate_ = "100.0";
     this.strike_ = "100.0";
     this.baseCoupon_ = "0.0";
     //this.strikeValue_ = Convert.ToDouble(this.strike_) * this.baseUnderlyingValue_;
     this.baseUnderlyingValue_ = Convert.ToDouble(e_covm.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_[0].BasePrice_); 
     //double basePrice =
     this.strikeValue_ = Convert.ToDouble(this.strike_) * this.baseUnderlyingValue_ / 100.0;
 }
        public override Excel_compositeOptionLoaderView loaderView(Excel_compositeOptionViewModel e_covm)
        {
            Excel_compositeOptionLoaderView subTypeLoaderView = new Excel_compositeOptionLoaderView();

            subTypeLoaderView.InterfaceViewModel_ = e_covm;

            subTypeLoaderView.initialize(this);

            try 
            { 
                this.BaseUnderlyingValue_ = Convert.ToDouble(this.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_[0].BasePrice_); 
            }
            catch (Exception) { }

            //subTypeLoaderView. = this.Excel_underlyingCalcInfoViewModel_;

            subTypeLoaderView.selectedOptionGrid_.Children.Add(this.view());

            return subTypeLoaderView;
        }
 public override void DefaultSetting(Excel_compositeOptionViewModel e_covm)
 {
     this.callPut_ = "Call";
     this.baseCoupon_ = "0.0";
     this.strike_ = "100.0";
     //this.strikeValue_ = Convert.ToDouble(this.strike_) * this.baseUnderlyingValue_;
     this.coupon_ = "0.0";
     this.couponValue_ = "0.0";
 }