public void SetDevice(IAuto3D device)
        {
            _device = (Auto3DBaseDevice)device;
            labelDeviceName.Text = _device.SelectedDeviceModel.Name;

            InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands2D3DSBS, listBox2D3DSBS);
            InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands3DSBS2D, listBox3DSBS2D);
            InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands2D3DTAB, listBox2D3DTAB);
            InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands3DTAB2D, listBox3DTAB2D);
            InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands2D3D, listBox2D3D);
            InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands3D2D, listBox3D2D);
            InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands3DMVC, listBox3DMVC);

            _lbList.Add(listBox2D3DSBS);
            _lbList.Add(listBox3DSBS2D);
            _lbList.Add(listBox2D3DTAB);
            _lbList.Add(listBox3DTAB2D);
            _lbList.Add(listBox2D3D);
            _lbList.Add(listBox3D2D);
            _lbList.Add(listBox3DMVC);

            panelKeyPad.Controls.Add(device.GetRemoteControl());
            device.GetRemoteControl().Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;

            AddButtonEventHandlersRecursive(device.GetRemoteControl());

            ToolTip toolTip = new ToolTip();

            toolTip.SetToolTip(buttonDELETE, "Delete command");

            toolTip = new ToolTip();
            toolTip.SetToolTip(buttonListUp, "Move command up");

            toolTip = new ToolTip();
            toolTip.SetToolTip(buttonListDown, "Move command down");

            toolTip = new ToolTip();
            toolTip.SetToolTip(buttonDelay, "Delay command");

            toolTip = new ToolTip();
            toolTip.SetToolTip(buttonTest, "Test current sequence");
        }
Exemple #2
0
        public Auto3DTimings(IAuto3D device)
        {
            InitializeComponent();

            _location    = new Point(16, 60);
            _device      = (Auto3DBaseDevice)device;
            _totalHeight = Height;

            Height = _totalHeight + 12;
            CenterToParent();

            foreach (RemoteCommand rc in _device.RemoteCommands)
            {
                RemoteCommand rcTemp = new RemoteCommand(rc.Command, rc.Delay, rc.IrCode);
                comboBoxCommands.Items.Add(rcTemp);
            }

            comboBoxCommands.SelectedIndex = 0;

            panelRemoteInput.Visible = false;

            _IrTimer          = new Timer();
            _IrTimer.Interval = 10000;
            _IrTimer.Tick    += _IrTimer_Tick;

            if (_device.DeviceName == "Generic TV or Beamer (IR-Toy)")
            {
                labelIrCode.Enabled   = Auto3DBaseDevice.IsIrConnected();
                textBoxIrCode.Enabled = Auto3DBaseDevice.IsIrConnected();
                buttonLearn.Enabled   = Auto3DBaseDevice.IsIrConnected();
                buttonSend.Enabled    = Auto3DBaseDevice.IsIrConnected();
                buttonClear.Enabled   = Auto3DBaseDevice.IsIrConnected();
            }
            else
            {
                labelIrCode.Enabled   = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
                textBoxIrCode.Enabled = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
                buttonLearn.Enabled   = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
                buttonSend.Enabled    = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
                buttonClear.Enabled   = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
            }
        }
Exemple #3
0
        public Auto3DTimings(IAuto3D device)
        {
            InitializeComponent();

              _location = new Point(16, 60);
              _device = (Auto3DBaseDevice)device;
              _totalHeight = Height;

              Height = _totalHeight + 12;
              CenterToParent();

              foreach (RemoteCommand rc in _device.RemoteCommands)
              {
              RemoteCommand rcTemp = new RemoteCommand(rc.Command, rc.Delay, rc.IrCode);
              comboBoxCommands.Items.Add(rcTemp);
              }

              comboBoxCommands.SelectedIndex = 0;

              panelRemoteInput.Visible = false;

              _IrTimer = new Timer();
              _IrTimer.Interval = 10000;
              _IrTimer.Tick += _IrTimer_Tick;

              if (_device.DeviceName == "Generic TV or Beamer (IR-Toy)")
              {
              labelIrCode.Enabled = Auto3DBaseDevice.IsIrConnected();
              textBoxIrCode.Enabled = Auto3DBaseDevice.IsIrConnected();
              buttonLearn.Enabled = Auto3DBaseDevice.IsIrConnected();
              buttonSend.Enabled = Auto3DBaseDevice.IsIrConnected();
              buttonClear.Enabled = Auto3DBaseDevice.IsIrConnected();
              }
              else
              {
             labelIrCode.Enabled = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
             textBoxIrCode.Enabled = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
             buttonLearn.Enabled = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
             buttonSend.Enabled = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
             buttonClear.Enabled = Auto3DBaseDevice.AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected();
              }
        }
Exemple #4
0
        public override DeviceInterface GetTurnOnInterfaces()
        {
            DeviceInterface irDevice = (AllowIrCommandsForAllDevices && Auto3DBaseDevice.IsIrConnected()) ? DeviceInterface.IR : DeviceInterface.None;

            return(irDevice);
        }
        public void SetDevice(IAuto3D device)
        {
            _device = (Auto3DBaseDevice)device;
              labelDeviceName.Text = _device.SelectedDeviceModel.Name;

              InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands2D3DSBS, listBox2D3DSBS);
              InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands3DSBS2D, listBox3DSBS2D);
              InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands2D3DTAB, listBox2D3DTAB);
              InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands3DTAB2D, listBox3DTAB2D);
              InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands2D3D, listBox2D3D);
              InternalCommandSetToListBox(_device.SelectedDeviceModel.RemoteCommandSequences.Commands3D2D, listBox3D2D);

              _lbList.Add(listBox2D3DSBS);
              _lbList.Add(listBox3DSBS2D);
              _lbList.Add(listBox2D3DTAB);
              _lbList.Add(listBox3DTAB2D);
              _lbList.Add(listBox2D3D);
              _lbList.Add(listBox3D2D);

              panelKeyPad.Controls.Add(device.GetRemoteControl());
              device.GetRemoteControl().Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;

              AddButtonEventHandlersRecursive(device.GetRemoteControl());

              ToolTip toolTip = new ToolTip();
              toolTip.SetToolTip(buttonDELETE, "Delete command");

              toolTip = new ToolTip();
              toolTip.SetToolTip(buttonListUp, "Move command up");

              toolTip = new ToolTip();
              toolTip.SetToolTip(buttonListDown, "Move command down");

              toolTip = new ToolTip();
              toolTip.SetToolTip(buttonDelay, "Delay command");

              toolTip = new ToolTip();
              toolTip.SetToolTip(buttonTest, "Test current sequence");
        }