private string[] GetChartSerieTypeNames(BaseChart chart) { var list = System.Enum.GetNames(typeof(SerieType)); for (int i = 0; i < list.Length; i++) { if (list[i].Equals("Custom")) { var customName = chart.GetCustomSerieTypeName(); if (!string.IsNullOrEmpty(customName)) { list[i] = customName; } } } return(list); }