When programmatically creating and showing a BarsDialog in an add-on, the resulting BarsDialog does not allow selection of any instrument.
// method #1
var barsDialog1 = new BarsDialog();
var barsDialog1Result = barsDialog1.ShowDialog();
// method #2
var barsProperties2 = new BarsProperties();
var barsDialog2 = new BarsDialog(barsProperties2);
var barsDialog2Result = barsDialog2.ShowDialog();
What additional properties do I need to set on the BarsDialog for this to work?

Comment