GetHeaderPart()

View as Markdown

Definition

Indicates the tab header name.

Examples

1// NTTabPage member. Required for determining the tab header name
2protected override string GetHeaderPart(string variable)
3{
4 // Determine the text for the tab header name
5 switch (variable)
6 {
7 case "@INSTRUMENT": return Instrument == null ? Resource.GuiNewTab : Instrument.MasterInstrument.Name;
8 case "@INSTRUMENT_FULL": return Instrument == null ? Resource.GuiNewTab : Instrument.FullName;
9 }
10 return variable;
11}