예제 #1
0
파일: TimerJob.cs 프로젝트: ruslanlyalko/DA
 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 {}
     }
 }
예제 #2
0
 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 {}
         }
     }
 }