private async void GeneralOptionsButton_Click (object sender, RibbonControlEventArgs e) { try { ComponentContainer.EnsureSynchronizationContext (); await ThisAddIn.ComponentContainer.ShowGeneralOptions(); } catch (Exception x) { ExceptionHandler.Instance.DisplayException (x, s_logger); } }