public PlayByPlayDisplayBoxPresentationModel(IPlayByPlayDisplayBox view, IPlayByPlayViewPreview preview, ISequenceRegistry sequenceRegistry, IEventAggregator eventAggregator)
        {
            this.View             = view;
            this.preview          = preview;
            this.sequenceRegistry = sequenceRegistry;
            this.eventAggregator  = eventAggregator;
            this.CloseCommand     = new DelegateCommand <object>(this.Close);

            this.playByPlay = new PlayByPlay(0);

            this.View.Model    = this;
            this.preview.Model = this;
        }
Пример #2
0
        public PlayByPlayBoxesPresentationModel(IPlayByPlayDisplayBox displayView, IPlayByPlayEditBox editView, IPlayByPlayViewPreview preview, ISequenceRegistry sequenceRegistry, IEventAggregator eventAggregator)
        {
            this.DisplayView = displayView;
            this.EditView    = editView;

            this.preview          = preview;
            this.sequenceRegistry = sequenceRegistry;
            this.eventAggregator  = eventAggregator;

            this.CloseCommand  = new DelegateCommand <object>(this.Close);
            this.SaveCommand   = new DelegateCommand <object>(this.Save, this.CanSave);
            this.DeleteCommand = new DelegateCommand <object>(this.Delete);

            this.playByPlay = new RCE.Services.Contracts.PlayByPlay(0);

            this.DisplayView.Model = this;
            this.EditView.Model    = this;

            this.preview.Model = this;
        }