Esempio n. 1
0
        public static void StaticAsyncLocalTime(bool slient, SystemTimeHander callBack)
        {
            SystemTimeEventArgs _eventArgs = new SystemTimeEventArgs();

            _eventArgs.Now    = DateTime.Now;
            _eventArgs.Option = SystemTimeOption.Processing;
            _completedEvent   = callBack;

            if (_completedEvent != null)
            {
                _completedEvent(_eventArgs);
            }
            StaticAsyncLocalTime(slient);
        }
Esempio n. 2
0
        public static void StaticAsyncLocalTime(bool slient, SystemTimeHander callBack)
        {
            SystemTimeEventArgs _eventArgs = new SystemTimeEventArgs();
            _eventArgs.Now = DateTime.Now;
            _eventArgs.Option = SystemTimeOption.Processing;
            _completedEvent = callBack;

            if (_completedEvent != null) { _completedEvent(_eventArgs); }
            StaticAsyncLocalTime(slient);
        }