public BehaviorToolButton AddToolButton(Behavior behavior) { BehaviorToolButton button = behavior.CreateToolButton(); string category = BehaviorOrderer.GetCategory(behavior); AddToolButton(button, category); return(button); }
public TabPanel FindPanel(Behavior behavior) { foreach (var panel in Panels) { BehaviorToolButton button = panel.FindButton(behavior); if (button != null) { return(panel); } } return(null); }
public void ResetSelectedToolButton() { SelectedToolButton = null; UpdateSelectedToolButton(); }