IInstrumentProvider Interface
When creating your NTTabPage, if you wish to use the instrument link, be sure to implement the IInstrumentProvider interface.
Examples
1 public class MyWindowTabPage : NTTabPage, IInstrumentProvider 2 { 3 private Instrument instrument; 4 5 public MyWindowTabPage() 6 { 7 /* Define the content for our NTTabPage. We can load loose XAML to define controls and layouts 8 if we so choose here as well. 9 10 Note: XAML with event handlers defined inside WILL FAIL when attempted to load. 11 Note: XAML with "inline code" WILL FAIL when attempted to load */ 12 } 13 14 // IInstrumentProvider member 15 public Instrument Instrument 16 { 17 get { return instrument; } 18 set 19 { 20 if (instrument != null) 21 { 22 // Unsubscribe to subscriptions to previously selected instrument 23 } 24 25 if (value != null) 26 { 27 // Create subscriptions for the newly selected instrument 28 } 29 30 instrument = value; 31 32 // Send instrument to other windows linked to the same color 33 PropagateInstrumentChange(value); 34 35 // Update the tab header name 36 RefreshHeader(); 37 } 38 } 39 40 // Be sure to include all the required NTTabPage members as well 41 }

