/// <summary>
 /// 连接设备
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Link(object sender, MouseButtonEventArgs e)
 {
     try
     {
         TaskInoke.Coms[0].Value = com.SelectedItem.ToString();
         TaskInoke.Link(ipbox.Text, Convert.ToInt32(portbox.Text));
     }
     catch (Exception ex)
     {
         Log.error("连接失败", ex);
     }
 }