コード例 #1
0
 private void EventSink_PositionChanged(string axis, ulong position)
 {
     JavascriptInjector.Run(JavascriptInjector.ScriptAction.PositionChanged, axis, position.ToString());
 }
コード例 #2
0
 private void EventSink_CommandSent(CommandEventArgs args)
 {
     JavascriptInjector.Run(JavascriptInjector.ScriptAction.CommandSent, args.Command); // Sent: Hello Default;
 }
コード例 #3
0
 private void EventSink_Connected(ControlBoard board)
 {
     JavascriptInjector.Run(JavascriptInjector.ScriptAction.Connected, board.SerialConnection.PortName);
 }
コード例 #4
0
 private void EventSink_CommandFailed(CommandEventArgs args)
 {
     JavascriptInjector.Run(JavascriptInjector.ScriptAction.CommandFailed, args.Command);
 }
コード例 #5
0
 private void EventSink_Disconnected(ControlBoard board)
 {
     JavascriptInjector.Run(JavascriptInjector.ScriptAction.Disconnected, string.Empty);
 }