private void ExecuteInternal(object sender, DateTime EventTime, ExceptionEventHandler Error,string profileName) { try { TimerParameterSetter Setter = new TimerParameterSetter(EventTime, sender,ProfileName); Method.Execute(Setter); } catch (Exception ex) { if (Error != null) try { Error(this, new ExceptionEventArgs(EventTime, ex)); } catch {} } }
private void ExecuteInternal(object sender, DateTime EventTime, ExceptionEventHandler Error, string profileName) { try { TimerParameterSetter Setter = new TimerParameterSetter(EventTime, sender, ProfileName); Method.Execute(Setter); } catch (Exception ex) { if (Error != null) { try { Error(this, new ExceptionEventArgs(EventTime, ex)); } catch {} } } }