领胜LDS 键盘AOI检测项目
xcd
2020-06-24 d6c577e17ee7bb5331dd51d803f9b42441b0f0e5
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
using System;
using System.Configuration;
using System.Reflection;
 
namespace Bro.UI.Model
{
    public class DataService : IDataService
    {
        public void GetData(Action<DataItem, Exception> callback)
        {
            // Use this to connect to the actual data service
            var title = ConfigurationManager.AppSettings["Title"];
 
            if (string.IsNullOrWhiteSpace(title))
            {
                title = "T047";
            }
 
            title += " V" + Assembly.GetExecutingAssembly().GetName().Version.ToString();
 
            var item = new DataItem(title);
            callback(item, null);
        }
    }
}