private static void OnTimedEvent(Object source, System.Timers.ElapsedEventArgs e)
        {
            ComarchOptimaImportOrder comarchOptimaImportOrder = new ComarchOptimaImportOrder();


            comarchOptimaImportOrder.ComarchOptimaImportOrderStart();
        }
        public void Process()
        {
            Timer _timer = new Timer();

            // In miliseconds 60000 = 1 minute
            // This timer will tick every 1 minute

            _timer.Interval += 1000 * 60 * Convert.ToInt32(Properties.Settings.Default.Interval);

            _timer.Enabled = true;

            _timer.Elapsed += OnTimedEvent;


            ComarchOptimaImportOrder comarchOptimaImportOrder = new ComarchOptimaImportOrder();

            comarchOptimaImportOrder.ComarchOptimaImportOrderStart();

#if (DEBUG)
            while (true)
            {
                ;
            }
#endif
        }
Beispiel #3
0
        public void Process()
        {
            ComarchOptimaImportOrder comarchOptimaImportOrder = new ComarchOptimaImportOrder();
            EventLog eventLog = new EventLog();

            comarchOptimaImportOrder.ComarchOptimaImportOrderStart(eventLog);
        }