本文整理汇总了C#中MPSettings.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# MPSettings.SetValue方法的具体用法?C# MPSettings.SetValue怎么用?C# MPSettings.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MPSettings
的用法示例。
在下文中一共展示了MPSettings.SetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SaveSettings
public override void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValueAsBool("filemenu", "enabled", chbEnabled.Checked);
xmlwriter.SetValue("filemenu", "pincode", Util.Utils.EncryptPassword(textPinCodeBox.Text));
xmlwriter.SetValue("filemenu", "trashcan", textTrashcanFolder.Text);
}
}
示例2: SaveSettings
public override void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValue("movieplayer", "osdtimeout", textBoxDisplayTimeout.Text);
xmlwriter.SetValue("movieplayer", "zapdelay", textBoxZapDelay.Text);
xmlwriter.SetValue("movieplayer", "zaptimeout", textBoxZapTimeout.Text);
}
}
示例3: SaveSettings
private void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValue("movieplayer", "osdtimeout", _displayTimeout);
xmlwriter.SetValue("movieplayer", "zapdelay", _zapDelay);
xmlwriter.SetValue("movieplayer", "zaptimeout", _zapTimeout);
}
}
示例4: SaveSettings
private void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValue("gui", "language", _btnLanguage.Label);
xmlwriter.SetValue("skin", "name", _btnSkin.Label);
xmlwriter.SetValueAsBool("gui", "myprefix", _btnLanguagePrefix.Selected);
}
Config.SkinName = _btnSkin.Label;
}
示例5: SaveSettings
/// <summary>
///
/// </summary>
public override void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValueAsBool("dvdplayer", "pixelratiocorrection", pixelRatioCheckBox.Checked);
xmlwriter.SetValue("dvdplayer", "armode", aspectRatioComboBox.Text);
xmlwriter.SetValue("dvdplayer", "displaymode", displayModeComboBox.Text);
xmlwriter.SetValue("dvdplayer", "defaultar", defaultZoomModeComboBox.SelectedItem);
}
}
示例6: mpButtonOK_Click
private void mpButtonOK_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValue("WOL", "WolTimeout", mpUpDownWolTimeout.Value);
xmlwriter.SetValue("WOL", "WolResendTime", mpUpDownWolResend.Value);
xmlwriter.SetValue("WOL", "WaitTimeAfterWOL", mpUpDownWaitTime.Value);
}
this.Hide();
}
示例7: SaveSettings
/// <summary>
///
/// </summary>
public override void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValue("dvdplayer", "path", fileNameTextBox.Text);
xmlwriter.SetValue("dvdplayer", "arguments", parametersTextBox.Text);
xmlwriter.SetValueAsBool("dvdplayer", "internal", !internalPlayerCheckBox.Checked);
xmlwriter.SetValueAsBool("dvdplayer", "mediainfoused", useMediaInfo.Checked);
}
}
示例8: SaveSettings
private void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValue("MPDomoticz", "ServerAdress", _serveradress);
xmlwriter.SetValue("MPDomoticz", "ServerPort", _serverport);
xmlwriter.SetValue("MPDomoticz", "Username", _username);
xmlwriter.SetValue("MPDomoticz", "Password", _password);
xmlwriter.SetValue("MPDomoticz", "RefreshInterval", RefreshInterval);
}
}
示例9: SaveSettings
public void SaveSettings()
{
using (Settings writer = new MPSettings())
{
writer.SetValueAsBool("psclientplugin", "homeonly", homeOnlyCheckBox.Checked);
writer.SetValueAsBool("psclientplugin", "extensivelogging", extLogCheckBox.Checked);
writer.SetValue("psclientplugin", "shutdownmode", shutModeComboBox.SelectedIndex.ToString());
writer.SetValueAsBool("psclientplugin", "forceshutdown", forceCheckBox.Checked);
writer.SetValueAsBool("psclientplugin", "shutdownenabled", enableShutdownCheckBox.Checked);
writer.SetValue("psclientplugin", "idletimeout", idleNumericUpDown.Value);
}
}
示例10: SaveSettings
public override void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValue("general", "loglevel", cbDebug.SelectedIndex);
xmlwriter.SetValue("general", "ThreadPriority", mpThreadPriority.SelectedItem.ToString());
xmlwriter.SetValueAsBool("general", "watchdogEnabled", checkBoxEnableWatchdog.Checked);
xmlwriter.SetValueAsBool("general", "restartOnError", checkBoxAutoRestart.Checked);
xmlwriter.SetValue("general", "restart delay", numericUpDownDelay.Value);
}
}
示例11: SaveSettings
private void SaveSettings()
{
using (Settings xmlreader = new MPSettings())
{
xmlreader.SetValue("tvservice", "hostname", _serverHostName);
xmlreader.SetValue("tvservice", "preferredlanguages", _preferredLanguages);
xmlreader.SetValueAsBool("tvservice", "preferac3", _preferAC3);
xmlreader.SetValueAsBool("tvservice", "rebuildgraphOnNewAudioSpecs", _rebuildGraphOnNewAudioSpecs);
xmlreader.SetValueAsBool("tvservice", "rebuildgraphOnNewVideoSpecs", _rebuildGraphOnNewVideoSpecs);
xmlreader.SetValueAsBool("tvservice", "avoidSeeking", _avoidSeeking);
}
}
示例12: SaveSettings
private void SaveSettings()
{
// Don't save setting if skin value was not set
if (_btnSkin != null && _btnSkin.Label != "Skin:")
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValue("gui", "language", _btnLanguage.Label);
xmlwriter.SetValue("skin", "name", _btnSkin.Label);
xmlwriter.SetValueAsBool("gui", "myprefix", _btnLanguagePrefix.Selected);
}
Config.SkinName = _btnSkin.Label;
}
}
示例13: DoModal
public override void DoModal(int dwParentId)
{
int nagCount;
using (Settings xmlreader = new MPSettings())
{
nagCount = xmlreader.GetValueAsInt("general", "skinobsoletecount", 0);
}
//if (chkIgnore != null)
//{
chkIgnore.Visible = nagCount > 4;
//}
GUIPropertyManager.SetProperty("#userskin", _userSkin);
_timeLeft = 0;
timeStart = DateTime.Now;
UpdateCountDown(0);
base.DoModal(dwParentId);
GUIPropertyManager.SetProperty("#userskin", "");
GUIPropertyManager.SetProperty("#countdownseconds", "");
if (RevertToUserSkin)
{
nagCount++;
}
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValueAsBool("general", "dontshowskinversion", chkIgnore.Selected);
xmlwriter.SetValue("general", "skinobsoletecount", nagCount);
}
}
示例14: SaveSettings
private void SaveSettings()
{
using (Settings xmlreader = new MPSettings())
{
xmlreader.SetValue("tvservice", "hostname", _hostName);
}
}
示例15: SaveSettings
private void SaveSettings()
{
using (Settings xmlwriter = new MPSettings())
{
xmlwriter.SetValueAsBool("filemenu", "enabled", btnFileMenu.Selected);
xmlwriter.SetValue("filemenu", "pincode", Utils.EncryptPassword(_pin));
}
}