Beispiel #1
0
        }         // func RefreshTableAsync

        internal void ShowTableInfo()
        {
            GetActiveXlObjects(out _, out var workbook);

            var sb = new StringBuilder();

            if (Globals.ThisAddIn.Application.Selection is Excel.Range range && range.ListObject != null)
            {
                PpsListMapping.DebugInfo(range.ListObject.XmlMap, sb);
            }
Beispiel #2
0
        }         // proc RunActionSafe

        #endregion

        public void Refresh()
        {
            var currentEnvironment = Globals.ThisAddIn.CurrentEnvironment;
            var hasEnvironment     = currentEnvironment != null;
            var hasListObjectInfo  = PpsListMapping.TryParseFromSelection();

            cmdReport.Enabled         = hasEnvironment;
            cmdTable.Enabled          = hasEnvironment || hasListObjectInfo;
            cmdListObjectInfo.Enabled = hasListObjectInfo;

            cmdRefresh.Enabled           =
                cmdRefreshLayout.Enabled = Globals.ThisAddIn.Application.Selection is Excel.Range r && !(r.ListObject is null);
        }         // proc Refresh