Maps/MapAddress.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComLib.LocationSupport;


namespace ComLib.Maps
{
    /// <summary>
    /// View model for a GeoAddress.
    /// </summary>
    public class GeoAddressViewModel
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GeoAddressViewModel"/> class.
        /// </summary>
        public GeoAddressViewModel()
        {
            Width = 300;
            Height = 300;
        }


        /// <summary>
        /// Creates a new instance of this class.
        /// </summary>
        /// <param name="address">The address.</param>
        /// <param name="provider">The provider.</param>
        /// <param name="height">The height.</param>
        /// <param name="width">The width.</param>
        public GeoAddressViewModel(GeoAddress address, GeoProvider provider, int width, int height)
        {
            Init(address, provider, width, height);
        }


        /// <summary>
        /// Initializes a new instance of the <see cref="GeoAddressViewModel"/> class.
        /// </summary>
        /// <param name="address">The address.</param>
        /// <param name="providerName">Name of provider.</param>
        /// <param name="providerSourceUrl">Source url of provider.</param>
        /// <param name="providerApiKey">API key of provider.</param>
        /// <param name="height">The height.</param>
        /// <param name="width">The width.</param>
        public GeoAddressViewModel(Address address, string providerName, string providerSourceUrl, string providerApiKey, int width, int height)
        {
            Init(new GeoAddress() { Location = address }, 
                 new GeoProvider() { Name = providerName, SourceUrl = providerSourceUrl, ApiKey = providerApiKey },
                 width, height);
        }
        

        /// <summary>
        /// Initializes a new instance of the <see cref="GeoAddressViewModel"/> class.
        /// </summary>
        /// <param name="address">The address.</param>
        /// <param name="provider">The provider.</param>
        /// <param name="height">The height.</param>
后面还有 195 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。