protected virtual void RaisePowerEvent(PowerEventArgs e) { EventHandler <PowerEventArgs> handler = OnPowerEvent; if (handler != null) { IsGo = false; handler(this, e); IsGo = true; } }
private void HandlePowerEvent(object sender, Bacodelib.PowerEventArgs e) { Invoke(new LowBattery(OnLowBattery), new Object[] { e.Message }); }