Exemplo n.º 1
0
 private void btnVendorRead_Click(object sender, EventArgs e)
 {
     try
     {
         this.txtVendorID.Text = "";
         this.txtVendorID.Refresh();
         Thread.Sleep(100);
         if (macom_006409 == null)
         {
             macom_006409 = new MACOM_006409();
         }
         ushort vendorid = macom_006409.GetVendorID();
         this.txtVendorID.Text = "0x" + Convert.ToString(vendorid, 16).ToUpper();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "No link.", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }