C# - Automatically updating a textbox when measurement command is used
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I apologize in advance for this being a kinda vague and/or simple question. This is using C#.
My plugin creates a dockable pane with textboxes in it. As the user uses the measurement tool I want my textboxes to update with the data obtained from CurrentMeasurement.FirstPoint and CurrentMeasurement.EndPoint. I'm able to populate my textboxes with this data manually by running the plugin each time.. but that is extremely inefficient.
I want the textboxes to update automatically at the same time the Measurement Tools window pane updates (the one that comes with Navis). How do I do this? If anybody can provide the name of the command I should be using that'd be great, and if somebody has a code example that'd be 100x more awesome.
The only thing I can relate this to is creating a LocationListener when I'm making an android app in Java. It watches a button for user interaction and executes specific commands once that button is pressed.
I just started teaching myself (with many many many many thanks to Xiaodong Liang for the info on his AEC DevBlog and his posts here!) C# for the sole purpose of making some plugins for work.. it's quite a bit different than what I'm used to!
Thank you in advance.