Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OdinMenuTree"/> class.
 /// </summary>
 public OdinMenuTree(bool supportsMultiSelect, OdinMenuTreeDrawingConfig config)
 {
     this.Config    = config;
     this.selection = new OdinMenuTreeSelection(supportsMultiSelect);
     this.root      = new OdinMenuItem(this, "root", null);
     this.SetupAutoScroll();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OdinMenuTree"/> class.
 /// </summary>
 /// <param name="supportsMultiSelect">if set to <c>true</c> [supports multi select].</param>
 /// <param name="defaultMenuStyle">The default menu item style.</param>
 public OdinMenuTree(bool supportsMultiSelect, OdinMenuStyle defaultMenuStyle)
 {
     this.DefaultMenuStyle = defaultMenuStyle;
     this.selection        = new OdinMenuTreeSelection(supportsMultiSelect);
     this.root             = new OdinMenuItem(this, "root", null);
     this.SetupAutoScroll();
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OdinMenuTree"/> class.
 /// </summary>
 /// <param name="supportsMultiSelect">if set to <c>true</c> [supports multi select].</param>
 /// <param name="defaultMenuStyle">The default menu item style.</param>
 public OdinMenuTree(bool supportsMultiSelect, OdinMenuStyle defaultMenuStyle)
 {
     this.DefaultMenuStyle = defaultMenuStyle;
     this.selection        = new OdinMenuTreeSelection(supportsMultiSelect);
     this.root             = new OdinMenuItem(this, "root", null);
     this.SetupAutoScroll();
     this.searchFieldControlName = Guid.NewGuid().ToString();
 }