public void SetAllColorsOfRegions(IEnumerable <int> colors) { AllColorValuesOfRegions.Clear(); AllColorValuesOfRegions.AddRange(colors); AllColorsOfRegions.Clear(); AllColorsOfRegions.AddRange(colors.Select(e => e.ToString("X6"))); }
//================================// //== Methods ==// //================================// public void SetProperties(ExtraInformation source) { WindowTop = source.WindowTop; WindowLeft = source.WindowLeft; WindowHeight = source.WindowHeight; WindowWidth = source.WindowWidth; AllColorValuesOfRegions.Clear(); if (0 < source.AllColorsOfRegions.Count()) { AllColorValuesOfRegions.AddRange(source.AllColorsOfRegions.Select(e => Convert.ToInt32(e, 16))); } AllColorsOfRegions.Clear(); if (0 < source.AllColorsOfRegions.Count()) { AllColorsOfRegions.AddRange(source.AllColorValuesOfRegions.Select(e => e.ToString("X6"))); } }