Example #1
0
        private void LcButton_MouseDown(object sender, MouseEventArgs e)
        {
            if (_Pulsed)
            {
                return;
            }
            _Pulsed = true;

            int id = ((LcButton)sender).Id;

            try
            {
                _CmdManager.LcSet(id, true);
            }
            catch (Exception ex)
            {
                int    pos = _LcButtons.IndexOf((LcButton)sender);
                string msg = string.Format("ERROR pulsando LC [Pos={0}] [Id={1}]", pos, id);
                _Logger.Error(msg, ex);
            }
        }