Пример #1
0
        public void RegisterResponser(Type type, II3SkinChangedResponser responser)
        {
            if (responserDic.ContainsKey(type))
            {
                responserDic.Remove(type);
            }

            responserDic.Add(type, responser);
        }
Пример #2
0
        public void ResponseSkinChanged(Control control, I3SkinType type)
        {
            II3SkinChangedResponser responser = GetResponser(control.GetType());

            if (responser != null)
            {
                responser.ResponseSkinChanged(control, type);
            }

            foreach (Control subControl in control.Controls)
            {
                ResponseSkinChanged(subControl, type);
            }
        }