private void btHome_Click(object sender, EventArgs e) { string sText = ((Button)sender).Text; Log.Trace(m_eId.ToString() + " Axis " + sText + " Button Clicked", ti.Frm); if (Log.ShowMessageModal(m_eId.ToString() + " Axis", "Do you want to Axis Homing?") != System.Windows.Forms.DialogResult.Yes) { return; } ML.MT_GoHome(m_eId); }