Ejemplo n.º 1
0
        /// <summary>
        /// Configure the IR Server plugin.
        /// </summary>
        public void Configure(IWin32Window owner)
        {
            LoadSettings();

            DeviceSelect deviceSelect = new DeviceSelect();

            deviceSelect.SelectedDevice = _device;
            deviceSelect.InputByte      = _inputByte;
            deviceSelect.ByteMask       = _byteMask;
            deviceSelect.UseAllBytes    = _useAllBytes;
            deviceSelect.RepeatDelay    = _repeatDelay;

            if (deviceSelect.ShowDialog(owner) == DialogResult.OK)
            {
                _device      = deviceSelect.SelectedDevice;
                _inputByte   = deviceSelect.InputByte;
                _byteMask    = deviceSelect.ByteMask;
                _useAllBytes = deviceSelect.UseAllBytes;
                _repeatDelay = deviceSelect.RepeatDelay;

                SaveSettings();
            }
        }
    /// <summary>
    /// Configure the IR Server plugin.
    /// </summary>
    public void Configure(IWin32Window owner)
    {
      LoadSettings();

      DeviceSelect deviceSelect = new DeviceSelect();
      deviceSelect.SelectedDevice = _device;
      deviceSelect.InputByte = _inputByte;
      deviceSelect.ByteMask = _byteMask;
      deviceSelect.UseAllBytes = _useAllBytes;
      deviceSelect.RepeatDelay = _repeatDelay;

      if (deviceSelect.ShowDialog(owner) == DialogResult.OK)
      {
        _device = deviceSelect.SelectedDevice;
        _inputByte = deviceSelect.InputByte;
        _byteMask = deviceSelect.ByteMask;
        _useAllBytes = deviceSelect.UseAllBytes;
        _repeatDelay = deviceSelect.RepeatDelay;

        SaveSettings();
      }
    }