コード例 #1
0
ファイル: SettingsForm.cs プロジェクト: djblu/MediaPortal-1
 private void SettingsForm_Closed(object sender, EventArgs e)
 {
   try
   {
     // stop serial ir receiver thread
     serialuir.Close();
   }
   catch (Exception)
   {
     // Ignore
   }
   if (null != dinputRemote)
   {
     // make sure the listener thread gets killed cleanly!
     dinputRemote.Dispose();
     dinputRemote = null;
   }
 }
コード例 #2
0
ファイル: SettingsForm.cs プロジェクト: djblu/MediaPortal-1
    private void AddTabRemote()
    {
      //add remotes section      
      if (splashScreen != null)
      {
        splashScreen.SetInformation("Adding remote section...");
      }
      SectionSettings remote = new Remote();
      AddSection(new ConfigPage(null, remote, false));

      Log.Info("add DirectInput section");
      RemoteDirectInput dinputConf = new RemoteDirectInput();
      AddSection(new ConfigPage(remote, dinputConf, true));
      RemoteUSBUIRT usbuirtConf = new RemoteUSBUIRT();
      AddSection(new ConfigPage(remote, usbuirtConf, true));
      serialuir = new RemoteSerialUIR();
      AddSection(new ConfigPage(remote, serialuir, true));
      RemoteWinLirc winlircConf = new RemoteWinLirc();
      AddSection(new ConfigPage(remote, winlircConf, true));
      RemoteRedEye redeyeConf = new RemoteRedEye();
      AddSection(new ConfigPage(remote, redeyeConf, true));
    }