public void RegisterResponser(Type type, II3SkinChangedResponser responser) { if (responserDic.ContainsKey(type)) { responserDic.Remove(type); } responserDic.Add(type, responser); }
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); } }