private void comboBoxBranches_SelectionChangeCommitted(object sender, EventArgs e) { if (comboBoxBranches.SelectedValue == null) { return; } _selectedBranch = (IGitRef)comboBoxBranches.SelectedValue; SetSelectedRevisionByFocusedControl(); Go(); }