static void Main(string[] args) { demo.test obj = new demo.test(); DataTable target = obj.CreatTable(); obj.BulkInsert(target); Console.ReadLine(); }
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(); }
static void Main(string[] args) { Console.WriteLine("输入main函数序号:\n"); int number = Convert.ToInt32(Console.ReadLine()); demo.test command = new demo.test(); //string Forcheck = command.ten2hex(number); Console.WriteLine(command.command(number)); Console.ReadLine(); }
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(); }