settingvalues.cs
来自「Windows Mobile用户签名程序」· CS 代码 · 共 40 行
CS
40 行
/*
The Settings class does all of the work. This is the 'settings
definition' file. It defined two things; first it specifies the
keynames used in the settings file. This allows you to use
IntelliSense when reading / writing settings.
The second item is the default values. These are used if a config
file is not found or the config file does not contain an entry
for the particular setting.
*/
using System;
namespace DesktopSignature
{
/// <summary>
/// Contains setting key names.
/// </summary>
public class SettingKeys
{
public const string PortNumber = "PortNumber";
public const string SmoothLines = "SmoothLines";
public const string CryptPassphrase = "Passphrase";
}
/// <summary>
/// Default settings
/// </summary>
public class SettingDefaults
{
static public string[,] Values =
{
{SettingKeys.PortNumber, "10200"},
{SettingKeys.SmoothLines, "true"},
{SettingKeys.CryptPassphrase, "212a658c-2edf-46e4-b550-ebe53b91e6b3"}
};
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?