Esempio n. 1
0
        public void TestHandleScatterPlotLayoutChangedEventShouldUpdatePlots()
        {
            var @event = new LayoutChangedEvent();

            _service.Handle(@event);
            _mockTask.Verify(p => p.Execute(It.IsAny <UpdatePlotsCommand>()),
                             Times.Once());
        }
Esempio n. 2
0
        public async Task LaunchLayout()
        {
            Log.Logger.Debug($"ViewLayout=>pictureMode={PictureMode}, classMode={ClassMode}");

            switch (PictureMode)
            {
            //case ViewMode.Auto:
            default:
                switch (ClassMode)
                {
                //模式优先级 高于 画面布局,选择一个模式将会重置布局为自动
                //在某种模式下,用户可以随意更改布局
                case ClassMode.InteractionMode:
                    await LaunchAverageLayout();

                    break;

                case ClassMode.SpeakerMode:
                    await GotoSpeakerMode();

                    break;

                case ClassMode.ShareMode:
                    await GotoSharingMode();

                    break;
                }
                break;

            case PictureMode.AverageMode:
                await LaunchAverageLayout();

                break;

            case PictureMode.BigSmallsMode:
                await LaunchBigSmallLayout();

                break;

            case PictureMode.CloseupMode:
                await LaunchCloseUpLayout();

                break;
            }

            LayoutChangedEvent?.Invoke();
            await StartOrRefreshLiveAsync();

            //刷新扩展屏布局
            if (IsDoubleScreenOn)
            {
                ExtentdedLaunchLayout();
            }
        }
Esempio n. 3
0
 private void OnTypeChanged()
 {
     CreateContent(null, null);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Esempio n. 4
0
 private void OnTypeChanged()
 {
     Content = LootFactory.CreateLoot(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Esempio n. 5
0
 private void OnTypeChanged()
 {
     _content = CreateContent(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Esempio n. 6
0
 private void OnTypeChanged()
 {
     Content = RequirementFactory.CreateRequirement(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
 public void Handle(LayoutChangedEvent args)
 {
     OnPropertyChanged(() => Title);
     OnPropertyChanged(() => Items);
 }
Esempio n. 8
0
 private void OnTypeChanged()
 {
     Content = NodeFactory.CreateNode(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Esempio n. 9
0
 public void ExtentdedLaunchLayout()
 {
     ExtendedLaunchAverageLayout();
     Log.Logger.Debug($"当前模式{ClassMode}");
     LayoutChangedEvent?.Invoke();
 }
Esempio n. 10
0
 public void Handle(LayoutChangedEvent args)
 {
     _commandBus.Execute(new UpdatePlotsCommand());
 }