JLChen
2021-04-01 1ebda09d954de4409c5a7f3ba3c3ee75626ec7c0
HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs
File was renamed from HDL_ON/UI/UI2/FuntionControlView/Video/MainView.cs
@@ -8,7 +8,7 @@
namespace HDL_ON.UI.UI2.FuntionControlView.Video
{
    public class MainView : FrameLayout
    public class VideoMainView : FrameLayout
    {
        /// <summary>
        /// 加载可视对讲UI
@@ -16,17 +16,14 @@
        /// <param name="listVideo">门口机列表</param>
        /// <param name="listCall">通话记录列表</param>
        /// <param name="video">当前的可视对讲</param>
        public void Show(List<VideoMethod.FlVideo> listVideo, List<CallView> listCall, VideoClouds video)
        public void Show(List<FlVideo> listVideo, List<CallView> listCall, VideoClouds video)
        {
            #region 布局界面
            this.BackgroundColor = MusicColor.ViewColor;
            var topView = new TopView();
            this.AddChidren(topView.TopFLayoutView());
            topView.topNameBtn.TextID = StringId.keshiduijiang;
            topView.clickBackBtn.MouseUpEventHandler += (sender, e) =>
            {
                RemoveFromParent();
            };
            var pageView = new PageLayout()
            {
@@ -97,6 +94,18 @@
                }
            };
            topView.clickBackBtn.MouseUpEventHandler += (sender, e) =>
            {
                if (pageView.PageIndex == 1)
                {
                    pageView.PageIndex = 0;
                }
                else
                {
                    RemoveFromParent();
                }
            };
            #endregion
        }
        /// <summary>
@@ -105,7 +114,7 @@
        /// <param name="view1">父控件</param>
        /// <param name="list">门口机列表</param>
        /// <param name="videoClouds">当前的可视对讲</param>
        void View1(FrameLayout view1, List<VideoMethod.FlVideo> list, VideoClouds videoClouds)
        void View1(FrameLayout view1, List<FlVideo> list, VideoClouds videoClouds)
        {
            #region 布局界面
            var bjFl = new FrameLayout
@@ -124,7 +133,7 @@
            {
                X = Application.GetRealWidth(16),
                Y = Application.GetRealHeight(16),
                Width = Application.GetRealWidth(100),
                Width = Application.GetRealWidth(200),
                Height = Application.GetRealHeight(33),
                TextColor = MusicColor.MusicTxet14Color,
                TextSize = TextSize.Text24,
@@ -147,7 +156,7 @@
                TextAlignment = TextAlignment.CenterLeft,
                Text = "123456"
            };
           // bjFl.AddChidren(regionBtn);
            // bjFl.AddChidren(regionBtn);
            /// <summary>
            ///收藏图标
            /// </summary>
@@ -160,7 +169,7 @@
                UnSelectedImagePath = "MusicIcon/collect.png",
                SelectedImagePath = "MusicIcon/collectSelected.png",
            };
           // bjFl.AddChidren(collectIconBtn);
            // bjFl.AddChidren(collectIconBtn);
            ///可视对讲图标
            Button intercomBtnIcon = new Button
            {
@@ -183,7 +192,7 @@
            if (list.Count > 0)
            {
                //门禁二维码固定有的,虚拟一个出来
                list.Add(new VideoMethod.FlVideo { aliasName =Language.StringByID(StringId.menjinerweima), devType = "100" });
                list.Add(new FlVideo { aliasName = Language.StringByID(StringId.menjinerweima), devType = "100" });
            }
            //数组个数
            //int value = 15;
@@ -274,6 +283,7 @@
                        if (string.IsNullOrEmpty(flVideo.uuid))
                        {
                            new Intelligence.Automation.LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.peizhicanshuyouyichang));
                            return;
                        }
                        ESVideoInfo eSVideoInfo = new ESVideoInfo
                        {
@@ -316,7 +326,7 @@
            {
                X = Application.GetRealWidth(16),
                Y = Application.GetRealHeight(16),
                Width = Application.GetRealWidth(100),
                Width = Application.GetRealWidth(200),
                Height = Application.GetRealHeight(33),
                TextColor = MusicColor.MusicTxet14Color,
                TextSize = TextSize.Text24,
@@ -343,8 +353,8 @@
            var vv = new VerticalRefreshLayout
            {
                X = Application.GetRealWidth(16),
                Y = Application.GetRealHeight(58),
                Height = Application.GetRealHeight(458),
                Y = Application.GetRealHeight(58 + 17),
                Height = Application.GetRealHeight(458 - 17),
                Width = Application.GetRealWidth(295),
            };
            bjFl.AddChidren(vv);
@@ -470,12 +480,12 @@
                    break;
                case "1":
                    {
                        Language.StringByID(StringId.yijieting);
                        s = Language.StringByID(StringId.yijieting);
                    }
                    break;
                case "2":
                    {
                        Language.StringByID(StringId.yijujue);
                        s = Language.StringByID(StringId.yijujue);
                    }
                    break;
            }