Пример #1
0
        private void _BuzzerUDB_LongClick(object sender, EventArgs e)
        {
            bool enabled = !_StateManager.Buzzer.Enabled;

            try
            {
                _CmdManager.SetBuzzerState(enabled);
            }
            catch (Exception ex)
            {
                string msg = string.Format("ERROR {0} el ring", enabled ? "habilitando" : "deshabilitando");
                _Logger.Error(msg, ex);
            }
        }