protected void SendOnSelect(int index) { if (null != OnSelect) { SelectEventArgs <int> args = new SelectEventArgs <int>(index); foreach (EventHandler <SelectEventArgs <int> > inv in OnSelect.GetInvocationList()) { try { inv(this, args); } catch (Exception exception) { Log.postException(exception); } } } }