⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 locationtextservice.cs

📁 Some time ago, I stated in another article that I d take the idea of location broadcasting and devel
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -