private void ExpandToEnclosingUnit(UIAutomationClient.TextUnit tu)
 {
     try
     {
         GetSelectedTextRangeViewModel().TextRange.ExpandToEnclosingUnit(tu);
         UpdateSelectedTextRangeInfo();
     }
     catch (Exception e)
     {
         MessageDialog.Show(GetExceptionString(e));
     }
 }
        private void ExpandToEnclosingUnit(UIAutomationClient.TextUnit tu)
        {
            try
            {
                GetSelectedTextRangeViewModel().TextRange.ExpandToEnclosingUnit(tu);
                UpdateSelectedTextRangeInfo();
            }
#pragma warning disable CA1031 // Do not catch general exception types
            catch (Exception e)
            {
                e.ReportException();
                MessageDialog.Show(GetExceptionString(e));
            }
#pragma warning restore CA1031 // Do not catch general exception types
        }