示例#1
0
 /// <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
0
 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
0
    /// <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
0
    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);
    }