Esempio n. 1
0
        public SamsungTVSetup(IAuto3D device)
        {
            InitializeComponent();

              if (!(device is SamsungTV))
            throw new Exception("Auto3D: Device is no SamsungTV");

              _device = (SamsungTV)device;
        }
Esempio n. 2
0
        public PanasonicTVSetup(IAuto3D device)
        {
            InitializeComponent();

              if (!(device is PanasonicTV))
            throw new Exception("Auto3D: Device is no PanasonicTV");

              _device = (PanasonicTV)device;
        }
Esempio n. 3
0
        public SamsungTVSetup(IAuto3D device)
        {
            InitializeComponent();

            if (!(device is SamsungTV))
            {
                throw new Exception("Auto3D: Device is no SamsungTV");
            }

            _device = (SamsungTV)device;
        }
Esempio n. 4
0
        public LGTVSetup(IAuto3D device)
        {
            InitializeComponent();

              if (!(device is LGTV))
            throw new Exception("Auto3D: Device is no LGTV");

              _device = (LGTV)device;

              WebOS.UpdatePairingKey += WebOS_UpdatePairingKey;
        }
Esempio n. 5
0
        public PanasonicTVSetup(IAuto3D device)
        {
            InitializeComponent();

            if (!(device is PanasonicTV))
            {
                throw new Exception("Auto3D: Device is no PanasonicTV");
            }

            _device = (PanasonicTV)device;
        }
Esempio n. 6
0
        public SonyBeamerSetup(IAuto3D device)
        {
            InitializeComponent();

              if (!(device is SonyBeamer))
            throw new Exception("Auto3D: Device is no Sony Beamer");

              _device = (SonyBeamer)device;

              comboBoxPort.Items.Add("None");
              comboBoxPort.Items.AddRange(SerialPort.GetPortNames());
        }
Esempio n. 7
0
        public SharpLibDisplaySetup(IAuto3D device)
        {
            InitializeComponent();

            if (!(device is SharpLibDisplay))
            {
                throw new Exception("Auto3D: Device is no SharpLibDisplay");
            }

            _device = (SharpLibDisplay)device;

            //checkAllowIRCommandsForOtherDevices.Checked = Auto3DBaseDevice.AllowIrCommandsForAllDevices;
        }
Esempio n. 8
0
        public LGTVSetup(IAuto3D device)
        {
            InitializeComponent();

            if (!(device is LGTV))
            {
                throw new Exception("Auto3D: Device is no LGTV");
            }

            _device = (LGTV)device;

            WebOS.UpdatePairingKey += WebOS_UpdatePairingKey;
        }
Esempio n. 9
0
        public GenericeDeviceSetup(IAuto3D device)
        {
            InitializeComponent();

              if (!(device is GenericDevice))
            throw new Exception("Auto3D: Device is no Generic Device");

              _device = (GenericDevice)device;

              comboBoxPort.Items.Add("None");
              comboBoxPort.Items.AddRange(SerialPort.GetPortNames());

              checkAllowIRCommandsForOtherDevices.Checked = Auto3DBaseDevice.AllowIrCommandsForAllDevices;
        }
Esempio n. 10
0
        public SonyBeamerSetup(IAuto3D device)
        {
            InitializeComponent();

            if (!(device is SonyBeamer))
            {
                throw new Exception("Auto3D: Device is no Sony Beamer");
            }

            _device = (SonyBeamer)device;

            comboBoxPort.Items.Add("None");
            comboBoxPort.Items.AddRange(SerialPort.GetPortNames());
        }
Esempio n. 11
0
        public GenericeDeviceSetup(IAuto3D device)
        {
            InitializeComponent();

            if (!(device is GenericDevice))
            {
                throw new Exception("Auto3D: Device is no Generic Device");
            }

            _device = (GenericDevice)device;

            comboBoxPort.Items.Add("None");
            comboBoxPort.Items.AddRange(SerialPort.GetPortNames());

            checkAllowIRCommandsForOtherDevices.Checked = Auto3DBaseDevice.AllowIrCommandsForAllDevices;
        }
Esempio n. 12
0
        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");
        }
Esempio n. 13
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();
              }
        }
Esempio n. 14
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();
            }
        }
Esempio n. 15
0
 public NoDeviceSetup(IAuto3D device)
 {
     InitializeComponent();
     _device = device;
 }
Esempio n. 16
0
 public void SetDevice(IAuto3D device)
 {
     _device = (PhilipsTV)device;
 }
Esempio n. 17
0
        public void Start()
        {
            _run = true;

              g_Player.PlayBackEnded += OnVideoEnded;
              g_Player.PlayBackStopped += OnVideoStopped;
              g_Player.PlayBackStarted += OnVideoStarted;
              g_Player.TVChannelChanged += OnTVChannelChanged;

              using (Settings reader = new MPSettings())
              {
            b3DMenuAlways = reader.GetValueAsBool("Auto3DPlugin", "3DMenuAlways", false);
            b3DMenuOnKey = reader.GetValueAsBool("Auto3DPlugin", "3DMenuOnKey", false);
            String menuHotKey = reader.GetValueAsString("Auto3DPlugin", "3DMenuKey", "CTRL + D");

            if (menuHotKey.StartsWith("MCE")) // reject old configs
            menuHotKey = "";

            if (menuHotKey.StartsWith("HID"))
            {
              bMenuMCERemote = true;
              mceRemoteKey = menuHotKey;

              HIDInput.getInstance().HidEvent += Auto3DSetup_HidEvent;
            }
            else
            {
              bMenuHotKeyShift = menuHotKey.Contains("SHIFT");
              bMenuHotKeyCtrl = menuHotKey.Contains("CTRL");
              bMenuHotKeyAlt = menuHotKey.Contains("ALT");

              if (menuHotKey.Contains("+"))
              {
            int pos = menuHotKey.LastIndexOf('+');
            menuHotKey = menuHotKey.Substring(pos + 1).Trim();
              }

              _menuHotKey = (Keys)Enum.Parse(typeof(Keys), menuHotKey, true);
            }

            bCheckNameSimple = reader.GetValueAsBool("Auto3DPlugin", "CheckNameSimple", true);
            bCheckNameFull = reader.GetValueAsBool("Auto3DPlugin", "CheckNameFull", true);

            bCheckSideBySide = reader.GetValueAsBool("Auto3DPlugin", "SideBySide", true);
            bCheckTopAndBottom = reader.GetValueAsBool("Auto3DPlugin", "TopAndBottom", false);

            String activeDeviceName = reader.GetValueAsString("Auto3DPlugin", "ActiveDevice", "");

            bTV = reader.GetValueAsBool("Auto3DPlugin", "TV", false);
            bVideo = reader.GetValueAsBool("Auto3DPlugin", "Video", true);

            if (reader.GetValueAsBool("Auto3DPlugin", "CheckNameFormatSBS", true))
              _nameFormat = VideoFormat.Fmt3DSBS;
            else
              _nameFormat = VideoFormat.Fmt3DTAB;

            foreach (IAuto3D device in _listDevices)
            {
              if (device.ToString() == activeDeviceName)
            _activeDevice = device;
            }

            if (_activeDevice == null)
              _activeDevice = _listDevices[0];

            Log.Info("Auto3D: Connecting to Device " + _activeDevice.ToString());

            _activeDevice.Start();

            if (_activeDevice is Auto3DUPnPBaseDevice)
            Auto3DUPnP.StartSSDP();

            if (b3DMenuOnKey)
            {
              Auto3DHelpers.GetMainForm().PreviewKeyDown += form_PreviewKeyDown;
            }

            GUIGraphicsContext.Render3DSubtitle = reader.GetValueAsBool("Auto3DPlugin", "3DSubtitles", true);
            GUIGraphicsContext.Render3DSubtitleDistance = -reader.GetValueAsInt("Auto3DPlugin", "SubtitleDepth", 0);

            bConvert2Dto3DEnabled = reader.GetValueAsBool("Auto3DPlugin", "ConvertTo3D", false);
            GUIGraphicsContext.Convert2Dto3DSkewFactor = reader.GetValueAsInt("Auto3DPlugin", "SkewFactor", 10);

            bStretchSubtitles = reader.GetValueAsBool("Auto3DPlugin", "StretchSubtitles", false);

            bSuppressSwitchBackTo2D = reader.GetValueAsBool("Auto3DPlugin", "SupressSwitchBackTo2D", false);
            bConvert3DTo2D = reader.GetValueAsBool("Auto3DPlugin", "Convert3DTo2D", false);

            SplitKeywords(ref _keywordsSBS, reader.GetValueAsString("Auto3DPlugin", "SwitchSBSLabels", "\"3DSBS\", \"3D SBS\""));
            SplitKeywords(ref _keywordsSBSR, reader.GetValueAsString("Auto3DPlugin", "SwitchSBSRLabels", "\"3DSBSR\", \"3D SBS R\""));
            SplitKeywords(ref _keywordsTAB, reader.GetValueAsString("Auto3DPlugin", "SwitchTABLabels", "\"3DTAB\", \"3D TAB\""));
            SplitKeywords(ref _keywordsTABR, reader.GetValueAsString("Auto3DPlugin", "SwitchTABRLabels", "\"3DTABR\", \"3D TAB R\""));

            bTurnDeviceOff = reader.GetValueAsBool("Auto3DPlugin", "TurnDeviceOff", false);
            nTurnDeviceOffVia = reader.GetValueAsInt("Auto3DPlugin", "TurnDeviceOffVia", 0);
            nTurnDeviceOffWhen = reader.GetValueAsInt("Auto3DPlugin", "TurnDeviceOffWhen", 0);

            bTurnDeviceOn = reader.GetValueAsBool("Auto3DPlugin", "TurnDeviceOn", false);
            nTurnDeviceOnVia = reader.GetValueAsInt("Auto3DPlugin", "TurnDeviceOnVia", 0);
            nTurnDeviceOnWhen = reader.GetValueAsInt("Auto3DPlugin", "TurnDeviceOnWhen", 0);
              }

              SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
              SystemEvents.SessionEnding += SystemEvents_SessionEnding;
              GUIGraphicsContext.OnNewAction += GUIGraphicsContext_OnNewAction;

              if (bTurnDeviceOff && (nTurnDeviceOnWhen == 0 || nTurnDeviceOnWhen == 2) && _activeDevice.GetTurnOffInterfaces() != DeviceInterface.None)
              _activeDevice.TurnOn((DeviceInterface)nTurnDeviceOnVia);
        }
Esempio n. 18
0
 public void SetDevice(IAuto3D device)
 {
     _device = (PhilipsTV)device;
 }
Esempio n. 19
0
        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");
        }
Esempio n. 20
0
        public void Start()
        {
            _run = true;

            g_Player.PlayBackEnded    += OnVideoEnded;
            g_Player.PlayBackStopped  += OnVideoStopped;
            g_Player.PlayBackStarted  += OnVideoStarted;
            g_Player.TVChannelChanged += OnTVChannelChanged;

            using (Settings reader = new MPSettings())
            {
                b3DMenuAlways = reader.GetValueAsBool("Auto3DPlugin", "3DMenuAlways", false);
                b3DMenuOnKey  = reader.GetValueAsBool("Auto3DPlugin", "3DMenuOnKey", false);
                String menuHotKey = reader.GetValueAsString("Auto3DPlugin", "3DMenuKey", "CTRL + D");

                if (menuHotKey.StartsWith("MCE")) // reject old configs
                {
                    menuHotKey = "";
                }

                if (menuHotKey.StartsWith("HID"))
                {
                    bMenuMCERemote = true;
                    mceRemoteKey   = menuHotKey;

                    HIDInput.getInstance().HidEvent += Auto3DSetup_HidEvent;
                }
                else
                {
                    bMenuHotKeyShift = menuHotKey.Contains("SHIFT");
                    bMenuHotKeyCtrl  = menuHotKey.Contains("CTRL");
                    bMenuHotKeyAlt   = menuHotKey.Contains("ALT");

                    if (menuHotKey.Contains("+"))
                    {
                        int pos = menuHotKey.LastIndexOf('+');
                        menuHotKey = menuHotKey.Substring(pos + 1).Trim();
                    }

                    _menuHotKey = (Keys)Enum.Parse(typeof(Keys), menuHotKey, true);
                }

                bCheckNameSimple = reader.GetValueAsBool("Auto3DPlugin", "CheckNameSimple", true);
                bCheckNameFull   = reader.GetValueAsBool("Auto3DPlugin", "CheckNameFull", true);

                bCheckSideBySide      = reader.GetValueAsBool("Auto3DPlugin", "SideBySide", true);
                bCheckTopAndBottom    = reader.GetValueAsBool("Auto3DPlugin", "TopAndBottom", false);
                bAnalyzeNetworkStream = reader.GetValueAsBool("Auto3DPlugin", "AnalyzeNetworkStream", true);

                String activeDeviceName = reader.GetValueAsString("Auto3DPlugin", "ActiveDevice", "");

                bTV    = reader.GetValueAsBool("Auto3DPlugin", "TV", false);
                bVideo = reader.GetValueAsBool("Auto3DPlugin", "Video", true);

                if (reader.GetValueAsBool("Auto3DPlugin", "CheckNameFormatSBS", true))
                {
                    _nameFormat = VideoFormat.Fmt3DSBS;
                }
                else
                {
                    _nameFormat = VideoFormat.Fmt3DTAB;
                }

                foreach (IAuto3D device in _listDevices)
                {
                    if (device.ToString() == activeDeviceName)
                    {
                        _activeDevice = device;
                    }
                }

                if (_activeDevice == null)
                {
                    _activeDevice = _listDevices[0];
                }

                Log.Info("Auto3D: Connecting to Device " + _activeDevice.ToString());

                _activeDevice.Start();

                if (_activeDevice is Auto3DUPnPBaseDevice)
                {
                    Auto3DUPnP.StartSSDP();
                }

                if (b3DMenuOnKey)
                {
                    Auto3DHelpers.GetMainForm().PreviewKeyDown += form_PreviewKeyDown;
                }

                GUIGraphicsContext.Render3DSubtitle         = reader.GetValueAsBool("Auto3DPlugin", "3DSubtitles", true);
                GUIGraphicsContext.Render3DSubtitleDistance = -reader.GetValueAsInt("Auto3DPlugin", "SubtitleDepth", 0);

                bConvert2Dto3DEnabled = reader.GetValueAsBool("Auto3DPlugin", "ConvertTo3D", false);
                GUIGraphicsContext.Convert2Dto3DSkewFactor = reader.GetValueAsInt("Auto3DPlugin", "SkewFactor", 10);

                bStretchSubtitles = reader.GetValueAsBool("Auto3DPlugin", "StretchSubtitles", false);

                bSuppressSwitchBackTo2D = reader.GetValueAsBool("Auto3DPlugin", "SupressSwitchBackTo2D", false);
                bConvert3DTo2D          = reader.GetValueAsBool("Auto3DPlugin", "Convert3DTo2D", false);

                SplitKeywords(ref _keywordsSBS, reader.GetValueAsString("Auto3DPlugin", "SwitchSBSLabels", "\"3DSBS\", \"3D SBS\""));
                SplitKeywords(ref _keywordsSBSR, reader.GetValueAsString("Auto3DPlugin", "SwitchSBSRLabels", "\"3DSBSR\", \"3D SBS R\""));
                SplitKeywords(ref _keywordsTAB, reader.GetValueAsString("Auto3DPlugin", "SwitchTABLabels", "\"3DTAB\", \"3D TAB\""));
                SplitKeywords(ref _keywordsTABR, reader.GetValueAsString("Auto3DPlugin", "SwitchTABRLabels", "\"3DTABR\", \"3D TAB R\""));

                bTurnDeviceOff     = reader.GetValueAsBool("Auto3DPlugin", "TurnDeviceOff", false);
                nTurnDeviceOffVia  = reader.GetValueAsInt("Auto3DPlugin", "TurnDeviceOffVia", 0);
                nTurnDeviceOffWhen = reader.GetValueAsInt("Auto3DPlugin", "TurnDeviceOffWhen", 0);

                bTurnDeviceOn     = reader.GetValueAsBool("Auto3DPlugin", "TurnDeviceOn", false);
                nTurnDeviceOnVia  = reader.GetValueAsInt("Auto3DPlugin", "TurnDeviceOnVia", 0);
                nTurnDeviceOnWhen = reader.GetValueAsInt("Auto3DPlugin", "TurnDeviceOnWhen", 0);
            }

            SystemEvents.PowerModeChanged  += SystemEvents_PowerModeChanged;
            SystemEvents.SessionEnding     += SystemEvents_SessionEnding;
            GUIGraphicsContext.OnNewAction += GUIGraphicsContext_OnNewAction;

            if (bTurnDeviceOff && (nTurnDeviceOnWhen == 0 || nTurnDeviceOnWhen == 2) && _activeDevice.GetTurnOffInterfaces() != DeviceInterface.None)
            {
                _activeDevice.TurnOn((DeviceInterface)nTurnDeviceOnVia);
            }
        }
Esempio n. 21
0
 public NoDeviceSetup(IAuto3D device)
 {
     InitializeComponent();
     _device = device;
 }