Beispiel #1
0
 void toolbarClick(object sender, EventArgs e)
 {
     if (sender == alphButton)
     {
         InspectorSort = InspectorSort.Alphabetical;
     }
     else if (sender == catButton)
     {
         InspectorSort = InspectorSort.Categorized;
     }
     else
     {
         TabRadioToolButton button = (TabRadioToolButton)sender;
         if (selectedTab == button.Tab)
         {
             return;
         }
         selectedTab = button.Tab;
         Populate();
     }
     // If the tree is re-populated while a value is being edited, the focus that the value editor had
     // is not returned back to the tree. We need to explicitly get it.
     tree.GrabFocus();
 }