Inheritance: INotifyPropertyChanged
        /// <summary>
        /// ページ数を計算する
        /// </summary>
        public void CalculatePageNumber()
        {
            SetTextToModelsComposite();
            CommonLightBox dialog = new CommonLightBox();

            var pageLineCalcView            = new PageLineCalculatorView();
            var pageLineCalculatorViewModel = new PageLineCalculatorViewModel(ModelsComposite.NovelSettingModel, ModelsComposite.DocumentModel);

            pageLineCalcView.BindModel(pageLineCalculatorViewModel);

            dialog.Owner = Application.Current.MainWindow;
            dialog.BindUIElement(pageLineCalcView);
            dialog.LightBoxKind = CommonLightBox.CommonLightBoxKind.SaveOnly;

            ShowDialogManager.ShowDialog(dialog);
        }
 public void BindModel(PageLineCalculatorViewModel model)
 {
     _model = model;
     this.DataContext = _model;
 }
        /// <summary>
        /// ページ数を計算する
        /// </summary>
        public void CalculatePageNumber()
        {
            SetTextToModelsComposite();
            CommonLightBox dialog = new CommonLightBox();

            var pageLineCalcView = new PageLineCalculatorView();
            var pageLineCalculatorViewModel = new PageLineCalculatorViewModel(ModelsComposite.NovelSettingModel, ModelsComposite.DocumentModel);

            pageLineCalcView.BindModel(pageLineCalculatorViewModel);

            dialog.Owner = Application.Current.MainWindow;
            dialog.BindUIElement(pageLineCalcView);
            dialog.LightBoxKind = CommonLightBox.CommonLightBoxKind.SaveOnly;

            ShowDialogManager.ShowDialog(dialog);
        }