Пример #1
0
 public void UpdateSelectedToolButton()
 {
     if (selectedToolButton == null)
     {
         var first = BehaviorToolButtons.FirstOrDefault();
         if (first != null)
         {
             first.Click();
         }
     }
     else
     {
         selectedToolButton.Click();
     }
 }
Пример #2
0
 public BehaviorToolButton FindButton(Behavior behavior)
 {
     return(BehaviorToolButtons.FirstOrDefault(t => t.ParentBehavior == behavior));
 }