private void SelectProfileHandler(object sender, System.EventArgs e) { if (profileListBox.SelectedIndex == -1) return; else { manager.SelectProfile(profileListBox.SelectedIndex); } }