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;
|
}
|
}
|
}
|