liveexpohelper.cs

来自「Accessing microsoft live web services fr」· CS 代码 · 共 102 行

CS
102
字号
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 + =
减小字号Ctrl + -
显示快捷键?