public void ResponseSkinChanged(Control control, I3SkinType type) { TreeView tree = control as I3TreeView; tree.BeginUpdate(); try { switch (type) { case I3SkinType.黑: tree.BackColor = I3SkinChangedManager.DefaultBackColor_Dark; break; case I3SkinType.深蓝: tree.BackColor = I3SkinChangedManager.DefaultBackColor_DarkBlue; break; default: tree.BackColor = I3SkinChangedManager.DefaultBackColor_Blue; break; } } finally { tree.EndUpdate(); } }
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); } }
public void ResponseSkinChanged(Control control, I3SkinType type) { I3Table table = control as I3Table; switch (type) { case I3SkinType.黑: table.BackColor = I3SkinChangedManager.DefaultBackColor_Dark; break; case I3SkinType.深蓝: table.BackColor = I3SkinChangedManager.DefaultBackColor_DarkBlue; break; default: table.BackColor = I3SkinChangedManager.DefaultBackColor_Blue; break; } }
public void ResponseSkinChanged(Control control, I3SkinType type) { }