private CIcon findThemeIcon(string FdoIconName, IconList List) { foreach (CIcon icon in List.Icons) { if (icon.FdoName == FdoIconName) { return(icon); } } return(null); }
private void addThemeIcon(CIcon icon) { IconList list = getIconList(icon.Size); //Console.WriteLine("Icons: "+list.Icons.ToString()); if (findThemeIcon(icon.FdoName, list) == null) { list.Icons.Add(icon); IconCount += 1; } }
private IconList getIconList(int IconSize) { IconList il = new IconList(); foreach (IconList list in themeIcons) { if (list.Size == IconSize) { // Console.WriteLine("found!"); il = list; return(il); } } //Console.WriteLine("Not found!"); il.Size = IconSize; il.Icons = new ArrayList(); themeIcons.Add(il); return(il); }
private IconList getIconList(int IconSize) { IconList il = new IconList(); foreach (IconList list in themeIcons){ if (list.Size == IconSize){ // Console.WriteLine("found!"); il = list; return il; } } //Console.WriteLine("Not found!"); il.Size = IconSize; il.Icons = new ArrayList(); themeIcons.Add(il); return il; }
private CIcon findThemeIcon(string FdoIconName,IconList List) { foreach (CIcon icon in List.Icons){ if (icon.FdoName == FdoIconName) return icon; } return null; }