Instrument

View as Markdown

In order for instrument linking to work properly in your Add On, Instrument must be created.

Examples

1// IInstrumentProvider membepublic Instrument Instrument
2{
3 get { return instrument; }
4 set
5 {
6 if (instrument != null)
7 {
8 // Unsubscribe to subscriptions to previously selected instrument
9 }
10
11 if (value != null)
12 {
13 // Create subscriptions for the newly selected instrument
14 }
15
16 instrument = value;
17
18 // Send instrument to other windows linked to the same color
19 PropagateInstrumentChange(value);
20
21 // Update the tab header name
22 RefreshHeader();
23 }
24}