예제 #1
0
        public BehaviorToolButton AddToolButton(Behavior behavior)
        {
            BehaviorToolButton button   = behavior.CreateToolButton();
            string             category = BehaviorOrderer.GetCategory(behavior);

            AddToolButton(button, category);
            return(button);
        }
예제 #2
0
 public TabPanel FindPanel(Behavior behavior)
 {
     foreach (var panel in Panels)
     {
         BehaviorToolButton button = panel.FindButton(behavior);
         if (button != null)
         {
             return(panel);
         }
     }
     return(null);
 }
예제 #3
0
 public void ResetSelectedToolButton()
 {
     SelectedToolButton = null;
     UpdateSelectedToolButton();
 }