示例#1
0
 private void btnDisconnectRFExplorer_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     m_objRFE.ClosePort();
     UpdateButtonStatus();
     Cursor.Current = Cursors.Default;
 }
 public void ClosePort()
 {
     Cursor.Current = Cursors.WaitCursor;
     m_objRFE.ClosePort();
     UpdateButtonStatus();
     OnPortClosed(new EventArgs());
     Cursor.Current = Cursors.Default;
 }
 static void ClosePort()
 {
     if (m_pinConnection != null)
     {
         m_pinConnection.Close();
         m_pinConnection = null;
     }
     g_objRFE.ClosePort();
     g_objRFE.Close();
     g_objRFE = null;
 }