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

📄 liveexpohelper.cs

📁 Accessing microsoft live web services from windows mobile
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using LiveExpoService.LiveExpo;

namespace LiveExpoService
{
    /// <summary>
    /// LiveExpoHelper is a static class, used to hold credential information and
    /// location data to search information on the Windows Live Expo Service.
    /// </summary>
    public static class LiveExpoHelper
    {
        private static string credentials = Properties.Resources.LiveExpoCredentials;
#if DEBUG
        private static string searchCity = "Redmond";
        private static string searchState = "WA";
        private static string searchZIP = "";
        private static string searchCountry = "USA";
        private static float searchDistance = 40000;
#else
        private static string searchCity;
        private static string searchState;
        private static string searchZIP;
        private static string searchCountry;
        private static float searchDistance;
#endif
        public static string Credentials
        {
            set
            {
                credentials = value;
            }
            get
            {
                return credentials;
            }
        }

        public static string SearchCity
        {
            set
            {
                searchCity = value;
            }
            get
            {
                return searchCity;
            }
        }

        public static string SearchState
        {
            set
            {
                searchState = value;
            }
            get
            {
                return searchState;
            }
        }

        public static string SearchZIP
        {
            set
            {
                searchZIP = value;
            }
            get
            {
                return searchZIP;
            }
        }

        public static string SearchCountry
        {
            set
            {
                searchCountry = value;
            }
            get
            {
                return searchCountry;
            }
        }

        public static float SearchDistance
        {
            set
            {
                searchDistance = value;
            }
            get
            {
                return searchDistance;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -