locationtextservice.cs
来自「Some time ago, I stated in another artic」· CS 代码 · 共 38 行
CS
38 行
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
namespace DeepCast.Services
{
internal delegate void LocationChangedDelegate(DeepCast.Location.GeoLocation location);
/// <summary>
/// Service for raising UI-consumable events for location changes
/// </summary>
internal class LocationTextService : GeoService
{
internal event LocationChangedDelegate LocationChanged;
/// <summary>
/// Updates the specified location.
/// </summary>
/// <param name="location">The location.</param>
internal override void Update(DeepCast.Location.GeoLocation location)
{
if (LocationChanged != null)
{
this.LocationChanged(location);
}
}
/// <summary>
/// Gets the service's friendly name.
/// </summary>
/// <value>The name.</value>
internal override string Name
{
get { return "InternalService"; }
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?