Beispiel #1
0
        public override void Start(IDataInput input)
        {
            base.Start(input);

            if (RunOnStart)
            {
                input.ProcessData();
            }
            if (StopOnStart)
            {
                Stop(input);
            }
        }
Beispiel #2
0
        /// <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();
        }