Beispiel #1
0
 public ToggleButton(MenuItem parent, string name, ToggleNode node, string key, Func<MenuItem, bool> hide)
 {
     Name = name;
     this.node = node;
     this.key = key;
     this.parent = parent;
     this.hide = hide;
     if (hide != null)
     {
         node.OnValueChanged = Hide;
     }
 }
Beispiel #2
0
 public ToggleButton(string name, ToggleNode node, string key)
 {
     this.name = name;
     this.node = node;
     this.key = key;
 }