You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.7 KiB
56 lines
1.7 KiB
using Container.Common;
|
|
using Container.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Transitionals;
|
|
|
|
namespace Container.Business
|
|
{
|
|
public class PlayBackManage
|
|
{
|
|
private JService jService = new JService();
|
|
private OutLine outLine = OutLine.CreateInstance();
|
|
//private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
|
Class_Log log = new Class_Log();
|
|
App app = ((App)System.Windows.Application.Current);
|
|
/// <summary>
|
|
/// 获取后台图片或视频资源地址
|
|
/// </summary
|
|
/// <returns></returns>
|
|
public List<ProgModel> GetResource()
|
|
{
|
|
//Action ac = new Action(() =>//静默下载离线文件
|
|
//{
|
|
// log.WriteLogFile("GetResource()下载离线文件", "exelog");
|
|
// bool flag= jService.GetOutLineResource();
|
|
//});
|
|
//ac.BeginInvoke(null, null);
|
|
|
|
return outLine.LoadScreenConfig();
|
|
}
|
|
|
|
public void DownResource() {
|
|
Action ac = new Action(() =>//静默下载离线文件
|
|
{
|
|
log.WriteLogFile("GetResource()下载离线文件", "exelog");
|
|
app.isStartGetProg = true;
|
|
bool flag = jService.GetOutLineResource();
|
|
});
|
|
ac.BeginInvoke(null, null);
|
|
}
|
|
|
|
|
|
///// <summary>
|
|
///// 获取屏保切换间隔
|
|
///// </summary>
|
|
///// <returns></returns>
|
|
//public int GetInterval()
|
|
//{
|
|
// return jService.GetInterval();
|
|
//}
|
|
|
|
}
|
|
}
|
|
|