/// <summary> /// порисовать алерты /// </summary> public void PaintAlerts(List <IIAlert> alertArray) { try { _alertArray = alertArray; EraseAlertFromChart(alertArray); if (alertArray == null || _myCandles == null) { return; } for (int i = 0; i < alertArray.Count; i++) { if (alertArray[i].TypeAlert == AlertType.ChartAlert) { ChartCandle.PaintAlert((AlertToChart)alertArray[i]); } } } catch (Exception error) { if (LogMessageEvent != null) { LogMessageEvent(error.ToString(), LogMessageType.Error); } } }