//启动程序,检查配置文件,启动主线程 private void Form1_Load(object sender, EventArgs e) { if (ConfigCore.InitConfig()) { MainStart(); } }
//点击启动 public void button1_Click(object sender, EventArgs e) { if (ConfigCore.InitConfig()) { MainStart(); } }