예제 #1
0
 private void toolPanel_CurrentToolChanged(object sender, CurrentToolChangedEventArgs e)
 {
     for (int i = 0; i < myToolMenuButtons.Length; ++i)
     {
         myToolMenuButtons[i].Checked = i == (int)e.Tool;
     }
 }
예제 #2
0
 private void toolPanel_CurrentToolChanged( object sender, CurrentToolChangedEventArgs e )
 {
     for ( int i = 0; i < myToolMenuButtons.Length; ++i )
         myToolMenuButtons[ i ].Checked = i == (int) e.Tool;
 }