Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
If you are having a problem, please refer to the product documentation or check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.

TNF ObservableCollection?

rfoust Member ✭✭
edited June 2020 in SmartSDR API
I'm trying to figure out how to get the list of TNF filters using FlexLib. There doesn't appear to be a TNF ObservableCollection like there is for some of the other settings on the Radio class.

I'm bumping up against the edge of my C# knowledge here so not sure where to go from here. Any suggestions?



  • Peter K1PGV
    Peter K1PGV Member ✭✭✭
    edited June 2020
    Well, isn't THAT a good question.  There doesn't seem to be a way to enumerate the set of TNFs that are instantiated at any one time.  Note TNFs are kept in a List, and the List is private, as is the method that enumerates TNFs FindTNFById (and note that TNF IDs can be arbitrary unsigned integers).

    There IS a TNFAddedEventHander that's called whenever a TNF is added.  So that'll help you know when a new TNF has been added.  Likewise, there's a TMFRemovedEventHandler.

    I don't see any way to do what you're asking.  It's unfortunate that the list of TNFs isn't publicly enumerable.  
  • Eric-KE5DTO
    Eric-KE5DTO Administrator, FlexRadio Employee admin
    edited March 2017

    We talked about this and we agree that it makes sense to make the TNF List public.  We'll make this change in the next public release.  Thanks for finding this and bringing it to our attention.
  • rfoust
    rfoust Member ✭✭
    edited December 2016
    Thanks Eric!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.