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; } }
public ToggleButton(string name, ToggleNode node, string key) { this.name = name; this.node = node; this.key = key; }