private void LoadMenusFlexibles() { try { _OutlookBar.Buttons.Clear(); int index = 1; foreach (ExactTarget.Business.Entities.Menu item in listaMenus) { OutlookBarButton botton = new OutlookBarButton(index + 1, item.nombre, ExactTarget.Windows.Properties.Resources.Administracion, item.menuID.ToString()); _OutlookBar.Buttons.Add(botton); _OutlookBar.Height += 40; index += 1; } } catch (Exception ex) { //Mensaje.ShowMessageAlert(this, Constantes.TituloMensaje, ex.Message); } if (_OutlookBar.Buttons.Count > 0) { _OutlookBar.Buttons[0].Selected = true; } }