当前位置: 首页>>代码示例>>C#>>正文


C# MPSettings.SetValue方法代码示例

本文整理汇总了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);
   }
 }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:9,代码来源:GuiFileMenu.cs

示例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);
   }
 }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:9,代码来源:GuiOSD.cs

示例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);
   }
 }
开发者ID:hkjensen,项目名称:MediaPortal-1,代码行数:9,代码来源:GUISettingsGUI_OnScreenDisplay.cs

示例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;
 }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:10,代码来源:GUISettingsGUI_Skin.cs

示例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);
      }
    }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:14,代码来源:DVDZoom.cs

示例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();
 }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:11,代码来源:DlgWol.cs

示例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);
      }
    }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:14,代码来源:DVDPlayer.cs

示例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);
     }
 }
开发者ID:j-b-n,项目名称:MPDomoticz,代码行数:11,代码来源:SetupForm.cs

示例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);
   }
 }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:12,代码来源:PowerSchedulerClientSetup.cs

示例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);
      }
    }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:12,代码来源:General.cs

示例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);
      }
    }
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:13,代码来源:TvSetupForm.cs

示例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;
   }
 }
开发者ID:MediaPortal,项目名称:MediaPortal-1,代码行数:14,代码来源:GUISettingsGUI_Skin.cs

示例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);
      }
    }
开发者ID:realsilver,项目名称:MediaPortal-1,代码行数:32,代码来源:GUIDialogOldSkin.cs

示例14: SaveSettings

 private void SaveSettings()
 {
   using (Settings xmlreader = new MPSettings())
   {
     xmlreader.SetValue("tvservice", "hostname", _hostName);
   }
 }
开发者ID:nio22,项目名称:MediaPortal-1,代码行数:7,代码来源:TvSetup.cs

示例15: SaveSettings

 private void SaveSettings()
 {
   using (Settings xmlwriter = new MPSettings())
   {
     xmlwriter.SetValueAsBool("filemenu", "enabled", btnFileMenu.Selected);
     xmlwriter.SetValue("filemenu", "pincode", Utils.EncryptPassword(_pin));
   }
 }
开发者ID:hkjensen,项目名称:MediaPortal-1,代码行数:8,代码来源:GUISettingsGUI.cs


注:本文中的MPSettings.SetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。