using System; using HDL_ON.Entity; using System.Collections.Generic; namespace HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock { public class CommonMethod { public CommonMethod() { } private static CommonMethod commonMethod = null; public static CommonMethod Current { get { if (commonMethod == null) { commonMethod = new CommonMethod(); } return commonMethod; } } /// /// 萤石视频门锁的图标 /// public string GetVideoDoorLockIcon(Comerom comerom) { if (comerom == Comerom.collect) { return "FunctionIcon/DoorLock/VideoDoorLockOpen.png"; } else { return "FunctionIcon/DoorLock/VideoDoorlockClose.png"; } } /// /// 获取萤石视频门锁列表 /// /// public List GetVideoDoorLockList() { var list = FunctionList.List.GetVideoDoorLockList(); #if DEBUG list.Add(new Function { name = "视频门锁一", sid = "23456789", spk = SPK.VideoDoorLock }); list.Add(new Function { name = "视频门锁二", sid = "2345678922", spk = SPK.VideoDoorLock }); #endif return list; } } }