wjc
2023-03-06 462c27c1d2618db2fa383a094afeeb0f8622fdee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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;
 
            }
 
        }
        /// <summary>
        /// 萤石视频门锁的图标
        /// </summary>
        public string GetVideoDoorLockIcon{
            get {
 
                return "FunctionIcon/DoorLock/DoorLock.png";
 
            }
        }
 
        /// <summary>
        /// 获取萤石视频门锁列表
        /// </summary>
        /// <returns></returns>
        public List<Function> 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;
        }
    }
}