| | |
| | | { |
| | | List<KeypadEntity> keypads = new List<KeypadEntity>(); |
| | | string aksIcon = "AksIcon/"; |
| | | keypads.Add(new KeypadEntity { keypad = "on", name = "开", localIconAddress = $"{aksIcon}kai" }); |
| | | keypads.Add(new KeypadEntity { keypad = "off", name = "关", localIconAddress = $"{aksIcon}guan" }); |
| | | keypads.Add(new KeypadEntity { keypad = "menu", name = "菜单", localIconAddress = $"{aksIcon}caidan" }); |
| | | keypads.Add(new KeypadEntity { keypad = "return", name = "返回", localIconAddress = $"{aksIcon}fanhui" }); |
| | | keypads.Add(new KeypadEntity { keypad = "sound_channel", name = "声道", localIconAddress = $"{aksIcon}shengdao" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_up", name = "音量+", localIconAddress = $"{aksIcon}yinliangjia" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_down", name = "音量-", localIconAddress = $"{aksIcon}yinliangjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "mute", name = "静音", localIconAddress = $"{aksIcon}jingyin" }); |
| | | keypads.Add(new KeypadEntity { keypad = "part_up", name = "上一部", localIconAddress = $"{aksIcon}shangyibu" }); |
| | | keypads.Add(new KeypadEntity { keypad = "part_down", name = "下一部", localIconAddress = $"{aksIcon}xiayibu" }); |
| | | keypads.Add(new KeypadEntity { keypad = "fast_rewind", name = "快退", localIconAddress = $"{aksIcon}kuaitui" }); |
| | | keypads.Add(new KeypadEntity { keypad = "fast_forward", name = "快进", localIconAddress = $"{aksIcon}kuaijin" }); |
| | | keypads.Add(new KeypadEntity { keypad = "stop", name = "停止", localIconAddress = $"{aksIcon}tingzhi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "pause", name = "暂停", localIconAddress = $"{aksIcon}zanting" }); |
| | | keypads.Add(new KeypadEntity { keypad = "play", name = "播放", localIconAddress = $"{aksIcon}bofang" }); |
| | | keypads.Add(new KeypadEntity { keypad = "in_out_warehouse", name = "进出仓", localIconAddress = $"{aksIcon}jinchucang" }); |
| | | keypads.Add(new KeypadEntity { keypad = "subtitle", name = "字幕", localIconAddress = $"{aksIcon}zimu" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_up", name = "上", localIconAddress = $"{aksIcon}shang" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_down", name = "下", localIconAddress = $"{aksIcon}xia" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_left", name = "左", localIconAddress = $"{aksIcon}zuo" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_right", name = "右", localIconAddress = $"{aksIcon}you" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_ok", name = "确认", localIconAddress = $"{aksIcon}ok" }); |
| | | keypads.Add(new KeypadEntity { keypad = "on", name = "开", localIconAddress = $"{aksIcon}kai.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "off", name = "关", localIconAddress = $"{aksIcon}guan.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "menu", name = "菜单", localIconAddress = $"{aksIcon}caidan.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "return", name = "返回", localIconAddress = $"{aksIcon}fanhui.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "sound_channel", name = "声道", localIconAddress = $"{aksIcon}shengdao.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_up", name = "音量+", localIconAddress = $"{aksIcon}yinliangjia.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_down", name = "音量-", localIconAddress = $"{aksIcon}yinliangjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "mute", name = "静音", localIconAddress = $"{aksIcon}jingyin.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "part_up", name = "上一部", localIconAddress = $"{aksIcon}shangyibu.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "part_down", name = "下一部", localIconAddress = $"{aksIcon}xiayibu.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "fast_rewind", name = "快退", localIconAddress = $"{aksIcon}kauitui.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "fast_forward", name = "快进", localIconAddress = $"{aksIcon}kuaijin.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "stop", name = "停止", localIconAddress = $"{aksIcon}tingzhi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "pause", name = "暂停", localIconAddress = $"{aksIcon}zanting.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "play", name = "播放", localIconAddress = $"{aksIcon}bofang.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "in_out_warehouse", name = "进出仓", localIconAddress = $"{aksIcon}jinchucang.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "subtitle", name = "字幕", localIconAddress = $"{aksIcon}zimu.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_up", name = "上", localIconAddress = $"{aksIcon}shang.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_down", name = "下", localIconAddress = $"{aksIcon}xia.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_left", name = "左", localIconAddress = $"{aksIcon}zuo.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_right", name = "右", localIconAddress = $"{aksIcon}you.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "key_ok", name = "确认", localIconAddress = $"{aksIcon}ok.png" }); |
| | | return keypads; |
| | | } |
| | | /// <summary> |
| | |
| | | { |
| | | List<KeypadEntity> keypads = new List<KeypadEntity>(); |
| | | string aksIcon = "AksIcon/"; |
| | | keypads.Add(new KeypadEntity { keypad = "on", name = "开", localIconAddress = $"{aksIcon}kai" }); |
| | | keypads.Add(new KeypadEntity { keypad = "off", name = "关", localIconAddress = $"{aksIcon}guan" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_up", name = "音量+", localIconAddress = $"{aksIcon}yinliangjia" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_down", name = "音量-", localIconAddress = $"{aksIcon}yinliangjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_", name = "HDMI 1", localIconAddress = $"{aksIcon}hdmi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_2", name = "HDMI 2", localIconAddress = $"{aksIcon}hdmi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_3", name = "HDMI 3", localIconAddress = $"{aksIcon}hdmi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_4", name = "HDMI 4", localIconAddress = $"{aksIcon}hdmi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_1", name = "自定义按键1", localIconAddress = $"{aksIcon}zdyanjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_2", name = "自定义按键2", localIconAddress = $"{aksIcon}zdyanjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_3", name = "自定义按键3", localIconAddress = $"{aksIcon}zdyanjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_4", name = "自定义按键4", localIconAddress = $"{aksIcon}zdyanjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "on", name = "开", localIconAddress = $"{aksIcon}kai.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "off", name = "关", localIconAddress = $"{aksIcon}guan.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_up", name = "音量+", localIconAddress = $"{aksIcon}yinliangjia.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_down", name = "音量-", localIconAddress = $"{aksIcon}yinliangjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_", name = "HDMI 1", localIconAddress = $"{aksIcon}hdmi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_2", name = "HDMI 2", localIconAddress = $"{aksIcon}hdmi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_3", name = "HDMI 3", localIconAddress = $"{aksIcon}hdmi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_4", name = "HDMI 4", localIconAddress = $"{aksIcon}hdmi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_1", name = "自定义按键1", localIconAddress = $"{aksIcon}zdyanjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_2", name = "自定义按键2", localIconAddress = $"{aksIcon}zdyanjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_3", name = "自定义按键3", localIconAddress = $"{aksIcon}zdyanjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_4", name = "自定义按键4", localIconAddress = $"{aksIcon}zdyanjian.png" }); |
| | | return keypads; |
| | | } |
| | | |
| | |
| | | { |
| | | List<KeypadEntity> keypads = new List<KeypadEntity>(); |
| | | string aksIcon = "AksIcon/"; |
| | | keypads.Add(new KeypadEntity { keypad = "on", name = "开", localIconAddress = $"{aksIcon}kai" }); |
| | | keypads.Add(new KeypadEntity { keypad = "off", name = "关", localIconAddress = $"{aksIcon}guan" }); |
| | | keypads.Add(new KeypadEntity { keypad = "signal_source", name = "信号源", localIconAddress = $"{aksIcon}xinhaoyuan" }); |
| | | keypads.Add(new KeypadEntity { keypad = "curtain_up", name = "幕布升", localIconAddress = $"{aksIcon}mubusheng" }); |
| | | keypads.Add(new KeypadEntity { keypad = "on", name = "开", localIconAddress = $"{aksIcon}kai.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "off", name = "关", localIconAddress = $"{aksIcon}guan.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "signal_source", name = "信号源", localIconAddress = $"{aksIcon}xinhaoyuan.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "curtain_up", name = "幕布升", localIconAddress = $"{aksIcon}mubusheng.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "curtain_down", name = "幕布降", localIconAddress = $"{aksIcon}mubujiang.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_", name = "HDMI 1", localIconAddress = $"{aksIcon}hdmi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_2", name = "HDMI 2", localIconAddress = $"{aksIcon}hdmi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_3", name = "HDMI 3", localIconAddress = $"{aksIcon}hdmi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_4", name = "HDMI 4", localIconAddress = $"{aksIcon}hdmi" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_up", name = "音量+", localIconAddress = $"{aksIcon}yinliangjia" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_down", name = "音量-", localIconAddress = $"{aksIcon}yinliangjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "menu", name = "菜单", localIconAddress = $"{aksIcon}caidan" }); |
| | | keypads.Add(new KeypadEntity { keypad = "return", name = "返回", localIconAddress = $"{aksIcon}fanhui" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_1", name = "自定义按键1", localIconAddress = $"{aksIcon}zdyanjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_2", name = "自定义按键2", localIconAddress = $"{aksIcon}zdyanjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_3", name = "自定义按键3", localIconAddress = $"{aksIcon}zdyanjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_4", name = "自定义按键4", localIconAddress = $"{aksIcon}zdyanjian" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_", name = "HDMI 1", localIconAddress = $"{aksIcon}hdmi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_2", name = "HDMI 2", localIconAddress = $"{aksIcon}hdmi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_3", name = "HDMI 3", localIconAddress = $"{aksIcon}hdmi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "HDMI_4", name = "HDMI 4", localIconAddress = $"{aksIcon}hdmi.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_up", name = "音量+", localIconAddress = $"{aksIcon}yinliangjia.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "volume_down", name = "音量-", localIconAddress = $"{aksIcon}yinliangjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "menu", name = "菜单", localIconAddress = $"{aksIcon}caidan.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "return", name = "返回", localIconAddress = $"{aksIcon}fanhui.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_1", name = "自定义按键1", localIconAddress = $"{aksIcon}zdyanjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_2", name = "自定义按键2", localIconAddress = $"{aksIcon}zdyanjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_3", name = "自定义按键3", localIconAddress = $"{aksIcon}zdyanjian.png" }); |
| | | keypads.Add(new KeypadEntity { keypad = "custom_4", name = "自定义按键4", localIconAddress = $"{aksIcon}zdyanjian.png" }); |
| | | return keypads; |
| | | } |
| | | |
| | |
| | | /// 遥控器列表 |
| | | /// </summary> |
| | | private List<RemoteControlEntity> remoteControlList; |
| | | |
| | | /// 时序器列表 |
| | | /// </summary> |
| | | private List<SequencerEntity> sequencerList; |
| | | /// <summary> |
| | | /// 设备 |
| | | /// </summary> |
| | |
| | | try |
| | | { |
| | | this.remoteControlList = SendMethod.Current.GetRemoteControlLits(this.device.deviceId); |
| | | this.sequencerList = SendMethod.Current.GetSequencerLits(this.device.deviceId); |
| | | } |
| | | catch { } |
| | | finally |
| | |
| | | { |
| | | case IntType.Player: |
| | | { |
| | | MusicPage musicPage = new MusicPage(); |
| | | MusicPage musicPage = new MusicPage(GetRemoteControl((int)IntType.Player),this.sequencerList); |
| | | this.vv.AddChidren(musicPage); |
| | | musicPage.Show(); |
| | | musicPage.action += (type) => |
| | |
| | | break; |
| | | case IntType.HiFi: |
| | | { |
| | | GfPage gfPage = new GfPage(); |
| | | GfPage gfPage = new GfPage(GetRemoteControl((int)IntType.HiFi), this.sequencerList); |
| | | this.vv.AddChidren(gfPage); |
| | | gfPage.Show(); |
| | | gfPage.action += (type) => |
| | |
| | | case IntType.TV: |
| | | { |
| | | |
| | | TvPage tvPage = new TvPage(); |
| | | TvPage tvPage = new TvPage(GetRemoteControl((int)IntType.TV), this.sequencerList); |
| | | this.vv.AddChidren(tvPage); |
| | | tvPage.Show(); |
| | | tvPage.action += (type) => |
| | |
| | | break; |
| | | case IntType.STB: |
| | | { |
| | | JdhPage jdhPage = new JdhPage(); |
| | | JdhPage jdhPage = new JdhPage(GetRemoteControl((int)IntType.STB), this.sequencerList); |
| | | this.vv.AddChidren(jdhPage); |
| | | jdhPage.Show(); |
| | | jdhPage.action += (type) => |
| | |
| | | break; |
| | | case IntType.Projector: |
| | | { |
| | | TyyPage tyyPage = new TyyPage(); |
| | | TyyPage tyyPage = new TyyPage(GetRemoteControl((int)IntType.Projector), this.sequencerList); |
| | | this.vv.AddChidren(tyyPage); |
| | | tyyPage.Show(); |
| | | tyyPage.action += (type) => |
| | |
| | | case IntType.Control: |
| | | { |
| | | |
| | | YkqPage ykqPage = new YkqPage(); |
| | | YkqPage ykqPage = new YkqPage(GetRemoteControl((int)IntType.Control), this.sequencerList); |
| | | this.vv.AddChidren(ykqPage); |
| | | ykqPage.Show(); |
| | | ykqPage.action += (type) => |
| | |
| | | |
| | | }); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查找遥控器 |
| | | /// </summary> |
| | | /// <param name="type">(1 = 播放器,2 = 功放,3 = 电视,4 = 机顶盒,5 = 投影仪,6 = 万能遥控器)</param> |
| | | /// <returns>不会为null</returns> |
| | | private RemoteControlEntity GetRemoteControl(int type) |
| | | { |
| | | if (this.remoteControlList == null || this.remoteControlList.Count == 0) |
| | | { |
| | | return new RemoteControlEntity(); |
| | | } |
| | | var re = this.remoteControlList.Find((o) => o.type == type); |
| | | if (re == null) |
| | | { |
| | | re = new RemoteControlEntity(); |
| | | } |
| | | re.deviceId = this.device.deviceId; |
| | | return re; |
| | | } |
| | | |
| | | |
| | | public enum IntType |
| | | { |
| | |
| | | return ""; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | buttonFram.AddBottomLine(); |
| | | } |
| | | buttonFram.GetImageButton().UnSelectedImagePath = keypad.localIconAddress; |
| | | buttonFram.GetNameButton().Text = keypad.name; |
| | | |
| | | xCount++; |
| | |
| | | buttonFram.AddImageView(); |
| | | buttonFram.AddNameView(); |
| | | buttonFram.Tag = keypad;//标记数据 |
| | | buttonFram.GetImageButton().UnSelectedImagePath = keypad.localIconAddress; |
| | | buttonFram.GetNameButton().Text = keypad.name; |
| | | if (widthDimensionValue > Application.GetRealWidth(currnetWidthValue)) |
| | | { |
| | |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 自定义的 |
| | | /// </summary> |
| | | public string deviceId = string.Empty; |
| | | /// <summary> |
| | | /// 1 = 播放器 |
| | | ///2 = 功放 |
| | | ///3 = 电视 |
| | |
| | | using System.Collections.Generic; |
| | | using HDL_ON.UI.Music; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity; |
| | | using Shared; |
| | | using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage; |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Aks |
| | |
| | | /// </summary> |
| | | public class GfPage : BaseFramLayout |
| | | { |
| | | public GfPage() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="remoteControlEntity">遥控器对象</param> |
| | | /// <param name="sequencerList">时序器列表</param> |
| | | public GfPage(RemoteControlEntity remoteControlEntity, List<SequencerEntity> sequencerList) |
| | | { |
| | | this.remoteControl = remoteControlEntity; |
| | | this.sequencerList = sequencerList; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 时序器列表 |
| | | /// </summary> |
| | | private List<SequencerEntity> sequencerList; |
| | | /// <summary> |
| | | /// 当前的遥控器对象 |
| | | /// </summary> |
| | | private RemoteControlEntity remoteControl; |
| | | public Action<IntType> action; |
| | | CornerFramLayout cornerFram; |
| | | TypeMultiFramLayout typeMultiFramLayout; |
| | |
| | | //时序器 |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | SxqPage sxqPage = new SxqPage(); |
| | | SxqPage sxqPage = new SxqPage(this.sequencerList, this.remoteControl.deviceId); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |
| | |
| | | using System.Collections.Generic; |
| | | using HDL_ON.UI.Music; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity; |
| | | using Shared; |
| | | using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage; |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Aks |
| | |
| | | /// </summary> |
| | | public class JdhPage:BaseFramLayout |
| | | { |
| | | public JdhPage() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="remoteControlEntity">遥控器对象</param> |
| | | /// <param name="sequencerList">时序器列表</param> |
| | | public JdhPage(RemoteControlEntity remoteControlEntity, List<SequencerEntity> sequencerList) |
| | | { |
| | | this.remoteControl = remoteControlEntity; |
| | | this.sequencerList = sequencerList; |
| | | } |
| | | /// <summary> |
| | | /// 时序器列表 |
| | | /// </summary> |
| | | private List<SequencerEntity> sequencerList; |
| | | /// <summary> |
| | | /// 当前的遥控器对象 |
| | | /// </summary> |
| | | private RemoteControlEntity remoteControl; |
| | | |
| | | |
| | | public Action<IntType> action; |
| | | /// <summary> |
| | | /// 最上面功能键容器 |
| | |
| | | //时序器 |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | SxqPage sxqPage = new SxqPage(); |
| | | SxqPage sxqPage = new SxqPage(this.sequencerList,this.remoteControl.deviceId); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |
| | |
| | | using System.Collections.Generic; |
| | | using HDL_ON.UI.Music; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity; |
| | | using Shared; |
| | | using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage; |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Aks |
| | |
| | | /// </summary> |
| | | public class MusicPage : BaseFramLayout |
| | | { |
| | | public MusicPage() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="remoteControlEntity">遥控器对象</param> |
| | | /// <param name="sequencerList">时序器列表</param> |
| | | public MusicPage(RemoteControlEntity remoteControlEntity, List<SequencerEntity> sequencerList) |
| | | { |
| | | this.remoteControl = remoteControlEntity; |
| | | this.sequencerList = sequencerList; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 时序器列表 |
| | | /// </summary> |
| | | private List<SequencerEntity> sequencerList; |
| | | /// <summary> |
| | | /// 当前的遥控器对象 |
| | | /// </summary> |
| | | private RemoteControlEntity remoteControl; |
| | | public Action<IntType> action; |
| | | CornerFramLayout cornerFram; |
| | | TypeSingleFramLayout typeSingleFramLayout; |
| | |
| | | |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | SxqPage sxqPage = new SxqPage(); |
| | | SxqPage sxqPage = new SxqPage(this.sequencerList, this.remoteControl.deviceId); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = MusicColor.TextColor, |
| | | TextSize = TextSize.Text16, |
| | | TextID = StringId.bofangqi, |
| | | //TextID = StringId.bofangqi, |
| | | Text = this.remoteControl.name, |
| | | }; |
| | | this.AddChidren(btnTitle); |
| | | |
| | |
| | | cornerFram.Y = btnTitle.Bottom + Application.GetRealHeight(16); |
| | | this.AddChidren(cornerFram); |
| | | cornerFram.SetMargin(16, 0, 16, 0); |
| | | cornerFram.LoadButtonPage(AksCommonMethod.Current.GetMusicKeypadList(),4); |
| | | cornerFram.LoadButtonPage(AksCommonMethod.Current.GetMusicKeypadList(), 4); |
| | | |
| | | |
| | | CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 364, 17); |
| | |
| | | typeMultiFramLayout = new TypeMultiFramLayout(); |
| | | typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32); |
| | | typeMultiFramLayout.AddView(cornerBottomFram); |
| | | typeMultiFramLayout.btnBottonRightName.TextID = StringId.bofangqi; |
| | | //typeMultiFramLayout.btnBottonRightName.TextID = StringId.bofangqi; |
| | | typeMultiFramLayout.btnBottonRightName.Text = this.remoteControl.name; |
| | | |
| | | this.AdjustRealHeight(16); |
| | | } |
| | |
| | | using HDL_ON.UI.UI2.Intelligence.Automation; |
| | | using System.Linq; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity; |
| | | using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock; |
| | | |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Aks |
| | | { |
| | |
| | | |
| | | |
| | | public VerticalScrolViewLayout vv; |
| | | public SxqPage() |
| | | /// <summary> |
| | | /// 时序器列表 |
| | | /// </summary> |
| | | private List<SequencerEntity> sequencerList; |
| | | |
| | | /// <summary> |
| | | /// 设备id |
| | | /// </summary> |
| | | private string deviceId; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="sequencerList">时序器列表</param> |
| | | /// <param name="deviceId">设备id</param> |
| | | public SxqPage(List<SequencerEntity> sequencerList, string deviceId) |
| | | { |
| | | this.sequencerList = sequencerList; |
| | | this.deviceId = deviceId; |
| | | } |
| | | public void Show() |
| | | { |
| | |
| | | this.AddChidren(vv); |
| | | BaseFramLayout fLayout = new BaseFramLayout(); |
| | | this.vv.AddChidren(fLayout); |
| | | var mList = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 }; |
| | | int line = 0; |
| | | int xCount = 0; |
| | | int rowNumber = 4; |
| | | for (int i = 1; i <= mList.Count; i++) |
| | | var list1 = this.sequencerList.FindAll((o) => o.type == 1); |
| | | for (int i = 1; i <= list1.Count; i++) |
| | | { |
| | | var sequencer = list1[i - 1]; |
| | | |
| | | VerticalBoutonFLayout buttonFram = new VerticalBoutonFLayout(); |
| | | buttonFram.AddView(fLayout); |
| | | buttonFram.Tag = i - 1; |
| | | buttonFram.Y = Application.GetRealWidth(16)+ Application.GetRealHeight((VerticalBoutonFLayout.heightFrameLayout+16) * line); |
| | | buttonFram.X = Application.GetRealWidth(16) + Application.GetRealWidth((VerticalBoutonFLayout.widthFrameLayout+8) * xCount); |
| | | buttonFram.Tag = sequencer; |
| | | buttonFram.Y = Application.GetRealWidth(16) + Application.GetRealHeight((VerticalBoutonFLayout.heightFrameLayout + 16) * line); |
| | | buttonFram.X = Application.GetRealWidth(16) + Application.GetRealWidth((VerticalBoutonFLayout.widthFrameLayout + 8) * xCount); |
| | | buttonFram.btnName.Text = sequencer.name; |
| | | xCount++; |
| | | if (i % rowNumber == 0) |
| | | { |
| | |
| | | } |
| | | buttonFram.SetONClickListener((fl, btn) => |
| | | { |
| | | //action.Invoke((int)buttonFram.Tag); |
| | | if (buttonFram.Tag != null || buttonFram.Tag is SequencerEntity) |
| | | { |
| | | |
| | | var sequ = (SequencerEntity)buttonFram.Tag; |
| | | SequencerControlExecute(sequ.seqId, "on"); |
| | | } |
| | | |
| | | }); |
| | | buttonFram.SetOFFClickListener((fl, btn) => |
| | | { |
| | | //action.Invoke((int)buttonFram.Tag); |
| | | if (buttonFram.Tag != null || buttonFram.Tag is SequencerEntity) |
| | | { |
| | | var sequ = (SequencerEntity)buttonFram.Tag; |
| | | SequencerControlExecute(sequ.seqId, "off"); |
| | | } |
| | | }); |
| | | |
| | | |
| | | } |
| | | fLayout.AdjustRealHeight(16); |
| | | |
| | | List<string> list = new List<string>() { |
| | | "A","B","C","D" |
| | | }; |
| | | for (int i = 0; i < list.Count; i++) |
| | | var list2 = this.sequencerList.FindAll((o) => o.type == 2); |
| | | for (int i = 0; i < list2.Count; i++) |
| | | { |
| | | Button btnName = new Button |
| | | { |
| | | Y = fLayout.Height, |
| | | X = Application.GetRealWidth(16) + Application.GetRealWidth((VerticalBoutonFLayout.widthFrameLayout+8) * i), |
| | | X = Application.GetRealWidth(16) + Application.GetRealWidth((VerticalBoutonFLayout.widthFrameLayout + 8) * i), |
| | | Width = Application.GetRealWidth(80), |
| | | Height = Application.GetRealHeight(44), |
| | | TextSize = TextSize.Text14, |
| | | TextColor = MusicColor.TextColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | Text = list[i], |
| | | Text = list2[i].name, |
| | | BackgroundColor = MusicColor.ViewColor, |
| | | SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor, |
| | | Radius = (uint)Application.GetRealHeight(12), |
| | | Padding=new Padding(0,5,0,5), |
| | | Tag = list2[i] |
| | | }; |
| | | btnName.MouseDownEventHandler += (sen, e) => |
| | | { |
| | | btnName.IsSelected = true; |
| | | if (btnName.Tag != null || btnName.Tag is SequencerEntity) |
| | | { |
| | | var sequ = (SequencerEntity)btnName.Tag; |
| | | SequencerControlExecute(sequ.seqId, "on"); |
| | | } |
| | | }; |
| | | btnName.MouseUpEventHandler += (sen, e) => |
| | | { |
| | | btnName.IsSelected = false; |
| | | //弹起颜色 |
| | | }; |
| | | fLayout.AddChidren(btnName); |
| | | } |
| | |
| | | this.RemoveFromParent(); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 时序器指令发送 |
| | | /// </summary> |
| | | /// <param name="seqId">时序器id</param> |
| | | /// <param name="onOff">时序器开关</param> |
| | | private void SequencerControlExecute(string seqId, string onOff) |
| | | { |
| | | CommonMethod.Current.SunThread(() => |
| | | { |
| | | SendMethod.Current.SequencerExecute(this.deviceId, seqId, onOff); |
| | | }); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | using System.Collections.Generic; |
| | | using HDL_ON.UI.Music; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity; |
| | | using Shared; |
| | | using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage; |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Aks |
| | |
| | | /// </summary> |
| | | public class TvPage : BaseFramLayout |
| | | { |
| | | public TvPage() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="remoteControlEntity">遥控器对象</param> |
| | | /// <param name="sequencerList">时序器列表</param> |
| | | public TvPage(RemoteControlEntity remoteControlEntity, List<SequencerEntity> sequencerList) |
| | | { |
| | | this.remoteControl = remoteControlEntity; |
| | | this.sequencerList = sequencerList; |
| | | } |
| | | /// <summary> |
| | | /// 时序器列表 |
| | | /// </summary> |
| | | private List<SequencerEntity> sequencerList; |
| | | /// <summary> |
| | | /// 当前的遥控器对象 |
| | | /// </summary> |
| | | private RemoteControlEntity remoteControl; |
| | | public Action<IntType> action; |
| | | /// <summary> |
| | | /// 最上面功能键容器 |
| | |
| | | //时序器 |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | SxqPage sxqPage = new SxqPage(); |
| | | SxqPage sxqPage = new SxqPage(this.sequencerList,this.remoteControl.deviceId); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |
| | |
| | | using System.Collections.Generic; |
| | | using HDL_ON.UI.Music; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity; |
| | | using Shared; |
| | | using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage; |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Aks |
| | |
| | | /// </summary> |
| | | public class TyyPage : BaseFramLayout |
| | | { |
| | | public TyyPage() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="remoteControlEntity">遥控器对象</param> |
| | | /// <param name="sequencerList">时序器列表</param> |
| | | public TyyPage(RemoteControlEntity remoteControlEntity, List<SequencerEntity> sequencerList) |
| | | { |
| | | this.remoteControl = remoteControlEntity; |
| | | this.sequencerList = sequencerList; |
| | | } |
| | | /// <summary> |
| | | /// 时序器列表 |
| | | /// </summary> |
| | | private List<SequencerEntity> sequencerList; |
| | | /// <summary> |
| | | /// 当前的遥控器对象 |
| | | /// </summary> |
| | | private RemoteControlEntity remoteControl; |
| | | public Action<IntType> action; |
| | | CornerFramLayout cornerTopFram; |
| | | MenuFramLayout menuFram; |
| | |
| | | //时序器 |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | SxqPage sxqPage = new SxqPage(); |
| | | SxqPage sxqPage = new SxqPage(this.sequencerList, this.remoteControl.deviceId); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |
| | |
| | | using System.Collections.Generic; |
| | | using HDL_ON.UI.Music; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView; |
| | | using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity; |
| | | using Shared; |
| | | using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage; |
| | | namespace HDL_ON.UI.UI2.FuntionControlView.Aks |
| | |
| | | /// </summary> |
| | | public class YkqPage : BaseFramLayout |
| | | { |
| | | public YkqPage() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="remoteControlEntity">遥控器对象</param> |
| | | /// <param name="sequencerList">时序器列表</param> |
| | | public YkqPage(RemoteControlEntity remoteControlEntity, List<SequencerEntity> sequencerList) |
| | | { |
| | | this.remoteControl = remoteControlEntity; |
| | | this.sequencerList = sequencerList; |
| | | } |
| | | /// <summary> |
| | | /// 时序器列表 |
| | | /// </summary> |
| | | private List<SequencerEntity> sequencerList; |
| | | /// <summary> |
| | | /// 当前的遥控器对象 |
| | | /// </summary> |
| | | private RemoteControlEntity remoteControl; |
| | | public Action<IntType> action; |
| | | /// <summary> |
| | | /// 切换设备容器 |
| | |
| | | //时序器 |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | SxqPage sxqPage = new SxqPage(); |
| | | SxqPage sxqPage = new SxqPage(this.sequencerList,this.remoteControl.deviceId); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |