public override void Start(IDataInput input) { base.Start(input); if (RunOnStart) { input.ProcessData(); } if (StopOnStart) { Stop(input); } }
/// <summary> /// Timer de input /// </summary> /// <param name="sender"></param> /// <param name="e"></param> static void Timer_Elapsed(object sender, ElapsedEventArgs e) { IDataInput origin = ((cTimer)sender).Parent; origin.ProcessData(); }