public void TestHandleScatterPlotLayoutChangedEventShouldUpdatePlots() { var @event = new LayoutChangedEvent(); _service.Handle(@event); _mockTask.Verify(p => p.Execute(It.IsAny <UpdatePlotsCommand>()), Times.Once()); }
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(); } }
private void OnTypeChanged() { CreateContent(null, null); DataChangedEvent?.Invoke(); LayoutChangedEvent?.Invoke(); }
private void OnTypeChanged() { Content = LootFactory.CreateLoot(Type); DataChangedEvent?.Invoke(); LayoutChangedEvent?.Invoke(); }
private void OnTypeChanged() { _content = CreateContent(Type); DataChangedEvent?.Invoke(); LayoutChangedEvent?.Invoke(); }
private void OnTypeChanged() { Content = RequirementFactory.CreateRequirement(Type); DataChangedEvent?.Invoke(); LayoutChangedEvent?.Invoke(); }
public void Handle(LayoutChangedEvent args) { OnPropertyChanged(() => Title); OnPropertyChanged(() => Items); }
private void OnTypeChanged() { Content = NodeFactory.CreateNode(Type); DataChangedEvent?.Invoke(); LayoutChangedEvent?.Invoke(); }
public void ExtentdedLaunchLayout() { ExtendedLaunchAverageLayout(); Log.Logger.Debug($"当前模式{ClassMode}"); LayoutChangedEvent?.Invoke(); }
public void Handle(LayoutChangedEvent args) { _commandBus.Execute(new UpdatePlotsCommand()); }