本文整理汇总了C#中MPSettings.Clear方法的典型用法代码示例。如果您正苦于以下问题:C# MPSettings.Clear方法的具体用法?C# MPSettings.Clear怎么用?C# MPSettings.Clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MPSettings
的用法示例。
在下文中一共展示了MPSettings.Clear方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MenuItemDVD
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void MenuItemDVD(object sender, EventArgs e)
{
g_Player.Stop();
using (Settings xmlreader = new MPSettings())
{
xmlreader.Clear();
}
Process.Start(Config.GetFile(Config.Dir.Base, "configuration.exe"), @"/wizard /section=wizards\dvd.xml");
}
示例2: dvdMenuItem_Click
private void dvdMenuItem_Click(object sender, EventArgs e)
{
g_Player.Stop();
if (GUIGraphicsContext.DX9Device.PresentationParameters.Windowed == false)
{
SwitchFullScreenOrWindowed(true);
}
using (Settings xmlreader = new MPSettings())
{
xmlreader.Clear();
}
Process.Start(Config.GetFile(Config.Dir.Base, "configuration.exe"), @"/wizard /section=wizards\dvd.xml");
}
示例3: StartConfiguration
/// <summary>
/// Start Configuration.exe
/// </summary>
private void StartConfiguration()
{
const string processName = "Configuration.exe";
if (Process.GetProcesses().Any(process => process.ProcessName.Equals(processName)))
{
return;
}
Log.Info("D3D: OnSetup - Stopping media");
g_Player.Stop();
MinimizeToTray();
using (Settings xmlreader = new MPSettings())
{
xmlreader.Clear();
}
Util.Utils.StartProcess(Config.GetFile(Config.Dir.Base, "Configuration.exe"), "", false, false);
}
示例4: OnSetup
public void OnSetup(object sender, EventArgs e)
{
string processName = "Configuration.exe";
foreach (Process process in Process.GetProcesses())
{
if (process.ProcessName.Equals(processName))
{
return;
}
}
Log.Info("D3D: OnSetup - Stopping media");
g_Player.Stop();
if (!GUIGraphicsContext.DX9Device.PresentationParameters.Windowed)
{
SwitchFullScreenOrWindowed(true);
}
_autoHideMouse = false;
Cursor.Show();
Invalidate(true);
using (Settings xmlreader = new MPSettings())
{
xmlreader.Clear();
}
Util.Utils.StartProcess(Config.GetFile(Config.Dir.Base, "Configuration.exe"), "", false, false);
}