Exemplo n.º 1
0
        private void button_Click(object sender, System.EventArgs e)
        {
            // Output the signal...
            if (sender is IRButton)
            {
                IRPacket irPacket = ((IRButton)sender).Info.IRPacket;

                if (irPacket is ModulatedSignal)
                {
                    if (redRat3 != null)
                    {
                        try
                        {
                            // Send the ModulatedSignal object to the RR3
                            redRat3.OutputModulatedSignal((ModulatedSignal)irPacket);
                        }

                        catch (Exception ex)
                        {
                            MessageBox.Show(ex.Message,
                                            "Error",
                                            MessageBoxButtons.OK,
                                            MessageBoxIcon.Exclamation);
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
 // Вывод одного сигнала
 public void OutputOneIRsignal(IRedRat3 RedRat3, IRPacket signal)
 {
     RedRat3.OutputModulatedSignal(signal);
 }