/// <summary> /// 擦出其它面板的选中状态 /// </summary> /// <param name="oneGroupPanel"></param> private void RestoreExceptOne(IGroupPanel oneGroupPanel) { foreach (KeyValuePair <UnitFunctionGroupType, IGroupPanel> item in groupPanel) { if (item.Value == oneGroupPanel) { continue; } item.Value.RestoreAll(); } }
void gp_DictionaryChanged(object sender, EventArgs e) { if (ItemClick != null) { EventArgsForDrawing eafd = e as EventArgsForDrawing; if (eafd != null) { IGroupPanel oneGroupPanel = eafd.Sender as IGroupPanel; RestoreExceptOne(oneGroupPanel); } ItemClick(sender, e); } }