File was renamed from HDL_ON/UI/UI2/FuntionControlView/Video/MainView.cs |
| | |
| | | |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Video |
| | | { |
| | | public class MainView : FrameLayout |
| | | public class VideoMainView : FrameLayout |
| | | { |
| | | /// <summary> |
| | | /// 加载可视对讲UI |
| | |
| | | /// <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() |
| | | { |
| | |
| | | |
| | | } |
| | | }; |
| | | topView.clickBackBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | if (pageView.PageIndex == 1) |
| | | { |
| | | pageView.PageIndex = 0; |
| | | } |
| | | else |
| | | { |
| | | RemoveFromParent(); |
| | | } |
| | | |
| | | }; |
| | | #endregion |
| | | } |
| | | /// <summary> |
| | |
| | | /// <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 |
| | |
| | | { |
| | | 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, |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = "123456" |
| | | }; |
| | | // bjFl.AddChidren(regionBtn); |
| | | // bjFl.AddChidren(regionBtn); |
| | | /// <summary> |
| | | ///收藏图标 |
| | | /// </summary> |
| | |
| | | UnSelectedImagePath = "MusicIcon/collect.png", |
| | | SelectedImagePath = "MusicIcon/collectSelected.png", |
| | | }; |
| | | // bjFl.AddChidren(collectIconBtn); |
| | | // bjFl.AddChidren(collectIconBtn); |
| | | ///可视对讲图标 |
| | | Button intercomBtnIcon = new Button |
| | | { |
| | |
| | | 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; |
| | |
| | | if (string.IsNullOrEmpty(flVideo.uuid)) |
| | | { |
| | | new Intelligence.Automation.LogicView.TipPopView().FlashingBox(Language.StringByID(StringId.peizhicanshuyouyichang)); |
| | | return; |
| | | } |
| | | ESVideoInfo eSVideoInfo = new ESVideoInfo |
| | | { |
| | |
| | | { |
| | | 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, |
| | |
| | | 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); |
| | |
| | | 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; |
| | | } |