Example #1
0
        public void TVRemoved(ref Samsung.iRemoteWrapper.TVInfo info)
        {
            int i = comboBoxTV.FindStringExact(info.ToString());

            if (i > 0)
            {
                comboBoxTV.Items.RemoveAt(i);
            }
        }
Example #2
0
        private void comboBoxTV_SelectedIndexChanged(object sender, EventArgs e)
        {
            Samsung.iRemoteWrapper.TVInfo info = (Samsung.iRemoteWrapper.TVInfo)comboBoxTV.SelectedItem;

            if (_device.iRemote.CurrentTV.ToString() != info.ToString())
            {
                _device.iRemote.ConnectTo((Samsung.iRemoteWrapper.TVInfo)comboBoxTV.SelectedItem);
                _device.IPAddress = info.ToString();
            }
        }
Example #3
0
        public void TVAdded(ref Samsung.iRemoteWrapper.TVInfo info)
        {
            comboBoxTV.Items.Add(info);

            String tv = comboBoxTV.Items[0].ToString();

            using (Settings reader = new MPSettings())
            {
                tv = reader.GetValueAsString("Auto3DPlugin", "SamsungAddress", info.ToString());
            }

            foreach (Samsung.iRemoteWrapper.TVInfo item in comboBoxTV.Items)
            {
                if (item.ToString() == info.ToString())
                {
                    comboBoxTV.SelectedItem = item;
                    break;
                }
            }

            comboBoxTV.SelectedItem = info;
        }
Example #4
0
        void _iRemote_addTVEvent(TVInfo info)
        {
            ((SamsungTVSetup)GetSetupControl()).TVAdded(ref info);

              if (info.ToString() == IPAddress)
              {
            MAC = Auto3DHelpers.RequestMACAddress(IPAddress);

            if (iRemote.ToString() != info.ToString())
              _iRemote.ConnectTo(info);
              }
        }
Example #5
0
 void iRemote_removeTVEvent(TVInfo info)
 {
     ((SamsungTVSetup)GetSetupControl()).TVRemoved(ref info);
 }
Example #6
0
 public static extern void Connect(ref TVInfo info, int port, StringBuilder DeviceName);
Example #7
0
        public void TvDeletedCallback(ref TVInfo info)
        {
            foreach (TVInfo info2 in this.tvs)
            {
                if (info2.Mac == info.Mac)
                {
                    this.tvs.Remove(info2);
                    break;
                }
            }

            TVInfo localCopy = info;

            MediaPortal.ProcessPlugins.Auto3D.Devices.Auto3DHelpers.GetMainForm().Invoke((System.Windows.Forms.MethodInvoker)delegate
            {
                if (removeTVEvent != null)
                    removeTVEvent(localCopy);
            });
        }
Example #8
0
        public void TvAddedCallback(ref TVInfo info)
        {
            foreach (TVInfo info2 in this.tvs)
            {
                if (info2.Mac == info.Mac)
                {
                    return; // is already in list
                }
            }

            TVInfo localCopy = info;
            this.tvs.Add(localCopy);

            MediaPortal.ProcessPlugins.Auto3D.Devices.Auto3DHelpers.GetMainForm().Invoke((System.Windows.Forms.MethodInvoker)delegate
            {
                if (addTVEvent != null)
                    addTVEvent(localCopy);
            });
        }
Example #9
0
        public void ConnectTo(TVInfo info)
        {
            iRemote.SetConnectCallback(this.connectOk, this.connectFail, this.disc, this.authentic, this.authenticFail, this.authenticDeny, this.authenticFull);
            iRemote.SetPacketParser(this.packetCb);

            this.curTv = info;

            HttpDownloader.SetTvIp(info.Ip);

            iRemote.Connect(ref this.curTv, 0xd6d8, new StringBuilder("Mobile Simulator"));
        }