示例#1
0
        public void ShowTimelineViewer()
        {
            // Axisを作る
            _view.GetTimelineControl().DataSource = TimeAxisGenerator.Generate();
            if (isFirstTime2ShowTimeline)
            {
                _view.GetTimelineControl().TimespanEnum  = TimelineControl.Model.TimespanEnum.Hour3;
                _view.GetTimelineControl().StartDateTime = GetStartDateTime();

                isFirstTime2ShowTimeline = false;
            }
            _view.GetTimelineControl().EventModelManager = EventModelManagerGenerator.Generate();
        }
示例#2
0
        public MainWindowViewModel(MainWindowView view)
        {
            IsAdsVisibility = false;
            _selectedTab    = 0;

            _view = view;

            _writersBattleFieldViewModel     = new WritersBattleFieldViewModel();
            _characterBuildControlViewModel  = new CharacterBuildViewModel();
            _storyFrameBuildControlViewModel = new StoryFrameBuildControlViewModel();
            _itemBuildControlViewModel       = new ItemBuildControlViewModel();

            _fileService = new SaveFileService();

            PluginLoad();
            InitializeViews();

            //TestBizModel.PrepareForTest();

            // WindowShowイベントに登録
            EventAggregator.ShowEventRised            += OnShowWindowEvent;
            EventAggregator.AdsLoaded                 += OnAdsLoaded;
            EventAggregator.DataReloaded              += OnDataReloaded;
            EventAggregator.ModelValueChanged         += OnModelChanged;
            EventAggregator.SaveSucceeded             += OnSaved;
            EventAggregator.TryClose                  += OnTryClose;
            EventAggregator.TrySave                   += OnTrySave;
            EventAggregator.TryOpen                   += OnTryOpen;
            EventAggregator.TryCreateNew              += OnTryCreateNew;
            EventAggregator.TryCreateNewPlus          += OnTryCreateNewPlus;
            EventAggregator.ChangeTabOccuredHandler   += OnChangeTabOccured;
            EventAggregator.FontSettingChangedHandler += EventAggregator_FontSettingChangedHandler;

            _view.GetTimelineControl().EventChangedRised += OnTimelineEventChanged;
        }