public Excel_vanillaFloatingBond_subtypeLoaderView loaderView()
        {
            Excel_vanillaFloatingBond_subtypeLoaderView subTypeLoaderView = new Excel_vanillaFloatingBond_subtypeLoaderView();

            subTypeLoaderView.initialize(this);

            subTypeLoaderView.Excel_underlyingCalcInfoViewModel_ = this.Excel_underlyingCalcInfoViewModel_;

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

            return(subTypeLoaderView);
        }
        private void SubTypeSet_Button_Click(object sender, RoutedEventArgs e)
        {
            int underCount = this.viewModel_.Excel_underlyingCalcInfoViewModel_.Excel_underlyingInfoViewModel_.Count;

            //if (underCount == 0)
            //{
            //    MessageBoxResult msgBox = MessageBox.Show("Some Underlying Need.");
            //    return;
            //}

            Window w = new Window();

            w.Width  = 500;
            w.Height = 300;

            Excel_vanillaFloatingBond_subtypeLoaderView e_vfb_slv = this.ViewModel_.Excel_vanillaFloatingBond_subtypeViewModel_.loaderView();

            //default
            e_vfb_slv.SelectedViewModel_ = new Excel_vanillaFloatingBond_simpleViewModel();
            e_vfb_slv.SelectedViewModel_.ScheduleGeneratorVM_.InitialDate_  = this.viewModel_.Excel_issueInfoViewModel_.EffectiveDate_;
            e_vfb_slv.SelectedViewModel_.ScheduleGeneratorVM_.EndDate_      = this.viewModel_.Excel_issueInfoViewModel_.MaturityDate_;
            e_vfb_slv.SelectedViewModel_.Excel_underlyingCalcInfoViewModel_ = this.ViewModel_.Excel_underlyingCalcInfoViewModel_;

            //e_f_slv.SelectedViewModel_.EffectiveDate_ = this.viewModel_.Excel_issueInfoViewModel_.EffectiveDate_;

            w.Content = e_vfb_slv;

            if (w.ShowDialog() == true)
            {
                //e_h_slv.SelectedViewModel_.descriptionUpdate();
                e_vfb_slv.SelectedViewModel_.excel_scheduleListVMBuild();
                this.viewModel_.Excel_vanillaFloatingCouponScheduleListViewModel_.setScheduleFromClone(
                    e_vfb_slv.SelectedViewModel_.Excel_vanillaFloatingCouponScheduleListViewModel_);

                this.viewModel_.Excel_vanillaFloatingBond_subtypeViewModel_ = e_vfb_slv.SelectedViewModel_;
            }
            else
            {
            }
        }
        public Excel_vanillaFloatingBond_subtypeLoaderView loaderView()
        {
            Excel_vanillaFloatingBond_subtypeLoaderView subTypeLoaderView = new Excel_vanillaFloatingBond_subtypeLoaderView();

            subTypeLoaderView.initialize(this);

            subTypeLoaderView.Excel_underlyingCalcInfoViewModel_ = this.Excel_underlyingCalcInfoViewModel_;

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

            return subTypeLoaderView;
        }