Exemple #1
0
        void WorkerProcessButtonStatus(NetworkButtonStatusEventArgs e)
        {
            var g = Devices.Find(e.SourceAddress);

            if (null == g)
            {
                Debug.WriteLine("mystery button press received from {0}: Button.{1}", e.SourceAddress.Address, e.ButtonStatus);
                return;
            }
            mCurrentProgram.ButtonStateChanged(g, e.ButtonStatus);
            if (null != g.Binding)
            {
                g.Binding.OnButtonStateChanged(e.ButtonStatus);
            }
        }