private void EventSink_PositionChanged(string axis, ulong position) { JavascriptInjector.Run(JavascriptInjector.ScriptAction.PositionChanged, axis, position.ToString()); }
private void EventSink_CommandSent(CommandEventArgs args) { JavascriptInjector.Run(JavascriptInjector.ScriptAction.CommandSent, args.Command); // Sent: Hello Default; }
private void EventSink_Connected(ControlBoard board) { JavascriptInjector.Run(JavascriptInjector.ScriptAction.Connected, board.SerialConnection.PortName); }
private void EventSink_CommandFailed(CommandEventArgs args) { JavascriptInjector.Run(JavascriptInjector.ScriptAction.CommandFailed, args.Command); }
private void EventSink_Disconnected(ControlBoard board) { JavascriptInjector.Run(JavascriptInjector.ScriptAction.Disconnected, string.Empty); }