// Insert event handler that outputs the button presses to the screen protected void OnButton(Ubisense.UData.Data.ObjectButtonPressed.RowType row) { if (ButtonPressed != null) { ButtonPressed(this, null, row); } }
// Update event handler that just calls the insert event handler with the new row protected void OnButton(Ubisense.UData.Data.ObjectButtonPressed.RowType oldRow, Ubisense.UData.Data.ObjectButtonPressed.RowType newRow) { if (ButtonPressed != null) { ButtonPressed(this, oldRow, newRow); } }
private void UbisensePositioning_ButtonPressed(object sender, Ubisense.UData.Data.ObjectButtonPressed.RowType?oldRow, Ubisense.UData.Data.ObjectButtonPressed.RowType newRow) { MessageBox.Show(string.Format("Tag ID: {0}, Button: {1}, Time: {2}", newRow.object_.Id, newRow.button_, newRow.timestamp_), "Button Pressed"); }
private void Positioning_ButtonPressed(object sender, Ubisense.UData.Data.ObjectButtonPressed.RowType?oldRow, Ubisense.UData.Data.ObjectButtonPressed.RowType newRow) { if (ActionOccured != null) { ActionOccured(this, newRow.object_.Id.ToString(), newRow.button_.ToString()); } }