private async void button2_Click(object sender, EventArgs e) { // 断开连接 await siemensPPI?.ConnectCloseAsync( ); button2.Enabled = false; button1.Enabled = true; panel2.Enabled = false; }
private async void button2_Click(object sender, EventArgs e) { // 断开连接 await siemensPPI?.ConnectCloseAsync( ); button2.Enabled = false; button1.Enabled = true; panel2.Enabled = false; }