You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
891 B
C#
36 lines
891 B
C#
using GuideScreen.Common.Common;
|
|
using GuideScreen.Common.Services;
|
|
|
|
namespace GuideScreen.UI.Controller
|
|
{
|
|
/// <summary>
|
|
/// 通用 控制器
|
|
/// </summary>
|
|
public class CommonController
|
|
{
|
|
private ISystemService systemService;
|
|
|
|
public CommonController(ISystemService systemService)
|
|
{
|
|
this.systemService = systemService;
|
|
Init();
|
|
}
|
|
|
|
public string Title { get; private set; }
|
|
|
|
public string AlarmText
|
|
{
|
|
get
|
|
{
|
|
var model = systemService.GetSystemConfig(SystemConfigKeys.AlarmText.ToString());
|
|
return model.ConfigValue;
|
|
}
|
|
}
|
|
|
|
private void Init()
|
|
{
|
|
var model = systemService.GetSystemConfig(SystemConfigKeys.ScreenTitle.ToString());
|
|
Title = model.ConfigValue;
|
|
}
|
|
}
|
|
} |