コード例 #1
0
 private void LoadSettings()
 {
     this.RCSettings = XMLUTILS.LoadRemoteSettings();
     this.SetDisableRemote();
     this.SetDisableRepeat();
     this.SetRepeatDelay();
 }
コード例 #2
0
 public static VLSYS_Mplay.RemoteControl LoadRemoteSettings()
 {
     VLSYS_Mplay.RemoteControl control = new VLSYS_Mplay.RemoteControl();
     if (Settings.Instance.Type.Equals("VLSYS_Mplay"))
     {
         VLSYS_Mplay.AdvancedSettings settings = VLSYS_Mplay.AdvancedSettings.Load();
         control.DisableRemote = settings.DisableRemote;
         control.DisableRepeat = settings.DisableRepeat;
         control.RepeatDelay   = settings.RepeatDelay;
     }
     return(control);
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
        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);
        }