public void Dispose() { if (dic != null) { foreach (object o_ in dic.Values) { ToolDispose.dispose(o_); } dic.Clear(); } dic = null; }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (menuItems != null) { ToolDispose.dispose(menuItems); } menuItems = null; if (filterWrap != null) { filterWrap.Dispose(); } filterWrap = null; }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (activity != null) { activity.Dispose(); } activity = null; Click -= MobButton_Click; ToolDispose.dispose(this.Background); this.Background = null; }
public void clearStateData() { ToolDispose.dispose(stateData_.Values); stateData_.Clear(); }