Ejemplo n.º 1
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();
            }
        }
Ejemplo n.º 2
0
 private void OnTypeChanged()
 {
     CreateContent(null, null);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Ejemplo n.º 3
0
 private void OnTypeChanged()
 {
     Content = LootFactory.CreateLoot(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Ejemplo n.º 4
0
 private void OnTypeChanged()
 {
     _content = CreateContent(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Ejemplo n.º 5
0
 private void OnTypeChanged()
 {
     Content = RequirementFactory.CreateRequirement(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Ejemplo n.º 6
0
 private void OnTypeChanged()
 {
     Content = NodeFactory.CreateNode(Type);
     DataChangedEvent?.Invoke();
     LayoutChangedEvent?.Invoke();
 }
Ejemplo n.º 7
0
 public void ExtentdedLaunchLayout()
 {
     ExtendedLaunchAverageLayout();
     Log.Logger.Debug($"当前模式{ClassMode}");
     LayoutChangedEvent?.Invoke();
 }