private void btnGetApplicationCANCount_Click(object sender, EventArgs e) { try { int chnCount = 0; if (TsMasterApi.tsapp_get_can_channel_count(ref chnCount) == 0) { tbGetCANCount.Text = chnCount.ToString(); Log("Set LIN Channel Count Success!"); } } catch { } }