private void buttonFermerProjet_Click(object sender, RibbonControlEventArgs e) { AddInUtilities.FermerProjet(); // then toggle needed to make ribbon groups invisible except "Application Excel 0365" //if (AddInUtilities.GetIsAddIn()) //{ // Globals.Ribbons.ManageTaskPaneRibbon.groupDeplacement.Visible = false; // Globals.Ribbons.ManageTaskPaneRibbon.groupNavigation.Visible = false; // Globals.Ribbons.ManageTaskPaneRibbon.groupSaisieItems.Visible = false; // Globals.Ribbons.ManageTaskPaneRibbon.groupGestProjet.Visible = false; // Globals.ThisAddIn.TaskPane.Visible = false; //} }