예제 #1
0
        public static void  Start()
        {
            if (PrjPub.IsCreateSnapShot())
            {
                RefreshData(null, null);
            }
            if (_timer == null)
            {
                OrgConfigBLL             objBll = new OrgConfigBLL();
                RailExam.Model.OrgConfig obj    = objBll.GetOrgConfig();
                long timer = obj.Hour * 60 * 60 * 1000;
                //long timer = obj.Hour*60*1000;
                _timer = new System.Timers.Timer(timer);

                _timer.Elapsed  += new ElapsedEventHandler(RefreshData);
                _timer.AutoReset = true;
                _timer.Enabled   = true;
            }
        }