Esempio n. 1
0
        public KJIcon Clone()
        {
            KJIcon obj = (KJIcon)this.MemberwiseClone();

            obj.ListTuYuan = new ArrayList();
            foreach (CBase nIcon in ListTuYuan)
            {
                obj.ListTuYuan.Add(nIcon);
            }
            return(obj);
        }
Esempio n. 2
0
        public static KJIcon CreateKJIcon(string sName)
        {
            KJIcon newObj = new KJIcon(sName);

            if (newObj.LoadFromXML())
            {
                return(newObj);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 3
0
        public static void AddKJIcon(string sName)
        {
            foreach (KJIcon nIcon in ListKJIcon)
            {
                if (sName == nIcon.IconName)
                {
                    return;
                }
            }
            KJIcon newIcon = CreateKJIcon(sName);

            if (newIcon != null)
            {
                ListKJIcon.Add(newIcon);
            }
        }