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