private void OnLegendFailed() { var handler = LegendFailed; if (handler != null) handler(this, null); }