Ejemplo n.º 1
0
 private void btnStarCAN_Click(object sender, RoutedEventArgs e)
 {
     if (IntData() == true)
     {
         if (DataProcess.ConnetCan() == true)
         {
             //   DataProcess.SendOrderToCan(AdjustID(1, txtCanID.Text));
             SetID();
             btnStarCAN.Visibility = Visibility.Collapsed;
             btnStopCAN.Visibility = Visibility.Visible;
         }
     }
     else
     {
         btnStarCAN.Visibility = Visibility.Visible;
         btnStopCAN.Visibility = Visibility.Collapsed;
     }
 }