Exemple #1
0
 private CIcon findThemeIcon(string FdoIconName, IconList List)
 {
     foreach (CIcon icon in List.Icons)
     {
         if (icon.FdoName == FdoIconName)
         {
             return(icon);
         }
     }
     return(null);
 }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
        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;
 }