Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            server = new Server();
            Server.content = "";
            server.start();

            timer = new System.Timers.Timer(1000 * 60 * 15);
            timer.Elapsed +=
            new System.Timers.ElapsedEventHandler(theout);
            //到达时间的时候执行事件;
            timer.AutoReset = true;
            //设置是执行一次(false)还是一直执行(true);
            timer.Enabled = true;

            work();
        }
Beispiel #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            label2.Text = cate;
            parseEngine = new ParseClient("fHKruOIrAtqIDOOOWHMUrvhk0dOwjplFOCjdL6CL", "93zxFQDtpRxaw6Y9moOyegqKqTTU8N3GBe42Je9n");

            server = new Server(port);
            Server.content = "";
            server.start();

            timer = new System.Timers.Timer(1000 * 60 * 20);
            timer.Elapsed +=
            new System.Timers.ElapsedEventHandler(theout);
            //到达时间的时候执行事件;
            timer.AutoReset = true;
            //设置是执行一次(false)还是一直执行(true);
            timer.Enabled = true;

            work();
        }