private void Feedhold_Click(object sender, RoutedEventArgs e) { try { if (KM.WriteLineReadLine("GetStopState") == "0") { KM.Feedhold(); } else { KM.ResumeFeedhold(); } } catch (Exception) { KM.ReleaseToken(); } }
private void btnFeedHold_Click(object sender, RoutedEventArgs e) { try { if (KM.WriteLineReadLine("GetStopState") == "0") { KM.Feedhold(); btnFeedHold.Content = "Resume"; } else { KM.ResumeFeedhold(); btnFeedHold.Content = "Feed Hold"; } } catch (Exception) { KM.CoordMotion.Interpreter.Halt(); } }