예제 #1
0
 static void Main(string[] args)
 {
     demo.test test_beta = new demo.test();
     test_beta.conDB();
     test_beta.db_initial();
     string[] input = test_beta.request();
     test_beta.db_upload(input);
     Console.ReadLine();
 }
예제 #2
0
        static void Main(string[] args)
        {
            demo.test modify = new demo.test();
            modify.conDB();
            DateTime startTime = DateTime.Now;

            while (true)
            {
                modify.update();
                System.Threading.Thread.Sleep(5000);
                Application.DoEvents();
                if (DateTime.Now - startTime > TimeSpan.FromMinutes(3))
                {
                    break;
                }
            }
            Console.ReadLine();
        }