private void button_active_plc_Click(object sender, EventArgs e) { OperateResult active = melsecSerial.ActivePlc( ); if (active.IsSuccess) { MessageBox.Show("Active Successful"); } else { MessageBox.Show("Failed: " + active.ToMessageShowString( )); } }