/// /// Copyright (c) 2013-2015 Sensus Metering Systems /// using System; using log4net; namespace TBF.BenchControl.Elde.RegulValve { static class Handlers { static readonly ILog log = LogManager.GetLogger(typeof(Handlers)); static Handlers() { } /// /// Called from the state machine when a procedure is selected and UI needs to be updated. /// public static void OnAdcChanged(object sender, CmdResponseArgs data) { if (AdcChangedHandler == null) return; try { AdcChangedHandler(sender, data); } catch (Exception e) { log.Error("AdcChangedHandler(...) failed", e); } } public static event EventHandler AdcChangedHandler; } }