public void Done(Object _enumControl, params object[] _params) { EnumControl enumControl = (EnumControl)_enumControl; if (enumControl == EnumControl.Common || enumControl == curEnumControl) { if (curControl != null) { curControl.Done(_params); } } }