private Action <ActiveMapViewChangedEventArgs> onActiveMapViewChanged()
 {
     return(delegate(ActiveMapViewChangedEventArgs args)
     {
         TableContent = null;
     });
 }
Beispiel #2
0
        private void CreateTableControlContent(MapMember mapTableToAdd)
        {
            TableControlContent tableContent = null;

            if (TableControlContentFactory.IsMapMemberSupported(mapTableToAdd))
            {
                tableContent = TableControlContentFactory.Create(mapTableToAdd);
            }

            LabelsTableContent = tableContent;
        }
        private void CreateTableControlContent()
        {
            TableControlContent tableContent = null;

            var       selectedLyrs = MapView.Active.GetSelectedLayers();
            var       selectedSTs  = MapView.Active.GetSelectedStandaloneTables();
            MapMember item         = null;

            if (selectedLyrs != null && selectedLyrs.Count == 1)
            {
                item = selectedLyrs[0];
            }
            else if (selectedSTs != null && selectedSTs.Count == 1)
            {
                item = selectedSTs[0];
            }
            if (TableControlContentFactory.IsMapMemberSupported(item))
            {
                tableContent = TableControlContentFactory.Create(item);
            }

            TableContent = tableContent;
        }