コード例 #1
0
ファイル: XMLUTILS.cs プロジェクト: arangas/MediaPortal-1
 public static RemoteLayout GetRemoteLayout(VLSYS_Mplay.RemoteControl RCSettings)
 {
   RemoteLayout layout = new RemoteLayout();
   layout.DisableRemote = false;
   layout.DisableRepeat = false;
   layout.RepeatDelay = false;
   layout.RemoteMapping = false;
   layout.Label1 = false;
   string type = Settings.Instance.Type;
   if (type != null)
   {
     if (!(type == "VLSYS_Mplay"))
     {
       if (((type == "MatrixMX") || (type == "MatrixGX")) || (type == "iMONLCDg")) {}
     }
     else
     {
       layout.DisableRemote = true;
       if (!RCSettings.DisableRemote)
       {
         layout.DisableRepeat = true;
         if (!RCSettings.DisableRepeat)
         {
           layout.RepeatDelay = true;
         }
         layout.RemoteMapping = true;
       }
       return layout;
     }
   }
   layout.Label1 = true;
   return layout;
 }
コード例 #2
0
ファイル: XMLUTILS.cs プロジェクト: arangas/MediaPortal-1
 public static void SaveRemoteSettings(VLSYS_Mplay.RemoteControl RemoteOptions)
 {
   if (Settings.Instance.Type.Equals("VLSYS_Mplay"))
   {
     VLSYS_Mplay.AdvancedSettings toSave = VLSYS_Mplay.AdvancedSettings.Load();
     toSave.DisableRemote = RemoteOptions.DisableRemote;
     toSave.DisableRepeat = RemoteOptions.DisableRepeat;
     toSave.RepeatDelay = RemoteOptions.RepeatDelay;
     VLSYS_Mplay.AdvancedSettings.Instance = toSave;
     VLSYS_Mplay.AdvancedSettings.Save(toSave);
     VLSYS_Mplay.AdvancedSettings.NotifyDriver();
   }
 }