public override void OnClick(TreeView treeview) { STPropertyGrid editor = (STPropertyGrid)LibraryGUI.GetActiveContent(typeof(STPropertyGrid)); if (editor == null) { editor = new STPropertyGrid(); LibraryGUI.LoadEditor(editor); } var prop = new BarsProperty(bars); editor.Text = Text; editor.Dock = DockStyle.Fill; editor.LoadProperty(prop, null); }
set => this.SetValue(BarsProperty, value);