private void btnOnOffXiLanh2_Click(object sender, EventArgs e) { if (sender == btnOnXiLanh2) { plc.SetXiLanh2Up(); } if (sender == btnOffXiLanh2) { plc.SetXiLanh2Down(); } }