private void addButton_Click(object sender, RoutedEventArgs e)
        {
            var service = new StoryFrameModelService();

            var newModel = service.AddNewStoryFrame();

            _model.Select(newModel);
        }
        /// <summary>
        /// 展開の転送
        /// </summary>
        /// <param name="storyFrames">展開</param>
        private static void TransferStoryFrames(List <StoryFrameModel> storyFrames)
        {
            var service = new StoryFrameModelService();

            foreach (var model in storyFrames)
            {
                service.AddStoryFrame(model);
            }
        }
        private bool ExpandStoryFrameModel()
        {
            var service = new StoryFrameModelService();

            foreach (var model in LoadComposition.StoryFrameModelCollection)
            {
                service.AddStoryFrame(model);
            }

            return(true);
        }
        private void deleteButton_Click(object sender, RoutedEventArgs e)
        {
            if (_model.SelectingModel == null)
            {
                return;
            }

            if (ShowDialogManager.ShowMessageBox("ほんとうに削除してもいいですか?", "確認", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
            {
                var service = new StoryFrameModelService();
                service.RemoveStoryFrame(_model.SelectingModel.Model);
            }
        }
Esempio n. 5
0
        private bool ExpandStoryFrameModel()
        {
            var service = new StoryFrameModelService();

            foreach (var model in LoadComposition.StoryFrameModelCollection)
            {
                model.StartDateTime = DateTime.Today;
                model.EndDateTime   = DateTime.Today;

                service.AddStoryFrame(model);
            }

            return(true);
        }