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