Exemple #1
0
        public SvcBackup()
        {
            InitializeComponent();

            this.tmr = new Timer();

            CXmlConfig xc = GetXmlConfig();
            //60 = 1분
            int Interval = CFindRep.IfNotNumberThen(xc.GetSetting("IntervalMinutes", 60), 60);

            this.tmr.Interval = Interval * 1000;
            //this.tmr.Interval = 15000;
            this.tmr.Enabled  = true;
            this.tmr.Elapsed += new ElapsedEventHandler(tmr_Elapsed);

            //처음엔 무조건 실행
            //tmr_Elapsed(this.tmr, null);
        }