private void lstMaps_SelectedIndexChanged(object sender, EventArgs e)
        {
            btnRemoveMap.Enabled = false;
            var grp = this.SelectedGroup;

            if (grp != null)
            {
                propertiesPanel.Controls.Clear();
                IMapWidget widget = null;

                var mapWidget = _flexLayout.GetFirstWidgetSet().MapWidget;
                //We're editing the one used by the map widget
                if (grp.id == mapWidget.MapId)
                {
                    widget = mapWidget;
                }

                var mapCtrl = new MapCtrl(_flexLayout, grp, _edsvc, widget);
                mapCtrl.Dock = DockStyle.Fill;
                propertiesPanel.Controls.Add(mapCtrl);
                btnRemoveMap.Enabled = true;
            }
        }
Exemplo n.º 2
0
        private void lstMaps_SelectedIndexChanged(object sender, EventArgs e)
        {
            btnRemoveMap.Enabled = false;
            var grp = this.SelectedGroup;
            if (grp != null)
            {
                propertiesPanel.Controls.Clear();
                IMapWidget widget = null;

                var mapWidget = _flexLayout.GetFirstWidgetSet().MapWidget;
                //We're editing the one used by the map widget
                if (grp.id == mapWidget.MapId)
                    widget = mapWidget;

                var mapCtrl = new MapCtrl(_flexLayout, grp, _edsvc, widget);
                mapCtrl.Dock = DockStyle.Fill;
                propertiesPanel.Controls.Add(mapCtrl);
                btnRemoveMap.Enabled = true;
            }
        }