public static string[] GetPenPatternNames() { string[] dashNameArray = DashStyle.GetNames(typeof(DashStyle)); int n = 1 + dashStyleCount; string[] names = new string[n]; names[0] = "Нет"; int i = 1; for (int j = 0; j < dashStyleCount; j++) { names[i] = dashNameArray[j]; i++; } return(names); }