/// <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"); }
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"); }
/// <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); }
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); }