예제 #1
0
        public formWmsPreview()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            MapInfo.Engine.Session.Current.CoordSysFactory.LoadDefaultProjectionFile();

            _capabilitiesStyleState = new WmsStyleState(textBoxStyle);
            _clientStyleState       = new WmsStyleState(textBoxLayerStyle);

            _capabilitiesLayerState = new WmsLayerState(null, comboBoxStyle, _capabilitiesStyleState);
            _clientLayerState       = new WmsLayerState(null, comboBoxLayerStyle, _clientStyleState);

            _srsState = new WmsSrsState(textBoxSrsDescription);

            _wmsCapabilitiesState = new WmsCapabilitiesState(textBoxURL, textBoxVersion, treeViewServerLayers, comboBoxImageFormat, _capabilitiesLayerState);
            _wmsClientState       = new WmsClientState(comboBoxImageFormat, checkBoxTransparent, pictureBoxColor, comboBoxProjection, _srsState, listBoxClientLayers, _clientLayerState);
            _featureLayerState    = new FeatureLayerState(mapControlWms);
            _serverList           = new ServerList(comboBoxServers);

            _currentToolButton                 = toolBarButtonZoomIn;
            _currentToolButton.Pushed          = true;
            mapControlWms.Tools.LeftButtonTool = _currentToolButton.Tag as string;
            mapControlWms.Map.DrawEvent       += new MapInfo.Mapping.MapDrawEventHandler(Map_DrawEvent);
            mapControlWms.PaintException      += new PaintExceptionEventHandler(mapControlWms_PaintException);

            ToolBarSetup();
            _serverList.Set();
        }
예제 #2
0
        public WmsClientState(
            ComboBox comboBoxImageFormat,
            CheckBox checkBoxTransparent,
            PictureBox pictureBoxBGColor,
            ComboBox comboBoxProjection,
            WmsSrsState srsState,
            ListBox listBoxClientLayers,
            WmsLayerState layerState)
        {
            _comboBoxImageFormat = comboBoxImageFormat;
            _checkBoxTransparent = checkBoxTransparent;
            _pictureBoxBGColor   = pictureBoxBGColor;
            _comboBoxProjection  = comboBoxProjection;
            _srsState            = srsState;
            _listBoxLayers       = listBoxClientLayers;
            _layerState          = layerState;

            Clear();
        }
예제 #3
0
        public WmsClientState(
            ComboBox comboBoxImageFormat,
            CheckBox checkBoxTransparent,
            PictureBox pictureBoxBGColor,
            ComboBox comboBoxProjection,
            WmsSrsState srsState,
            ListBox listBoxClientLayers,
            WmsLayerState layerState)
        {
            _comboBoxImageFormat = comboBoxImageFormat;
            _checkBoxTransparent = checkBoxTransparent;
            _pictureBoxBGColor = pictureBoxBGColor;
            _comboBoxProjection = comboBoxProjection;
            _srsState = srsState;
            _listBoxLayers = listBoxClientLayers;
            _layerState = layerState;

            Clear();
        }
예제 #4
0
        public formWmsPreview()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            MapInfo.Engine.Session.Current.CoordSysFactory.LoadDefaultProjectionFile();

            _capabilitiesStyleState = new WmsStyleState(textBoxStyle);
            _clientStyleState = new WmsStyleState(textBoxLayerStyle);

            _capabilitiesLayerState = new WmsLayerState(null, comboBoxStyle, _capabilitiesStyleState);
            _clientLayerState = new WmsLayerState(null, comboBoxLayerStyle, _clientStyleState);

            _srsState = new WmsSrsState(textBoxSrsDescription);

            _wmsCapabilitiesState = new WmsCapabilitiesState(textBoxURL, textBoxVersion, treeViewServerLayers, comboBoxImageFormat, _capabilitiesLayerState);
            _wmsClientState = new WmsClientState(comboBoxImageFormat, checkBoxTransparent, pictureBoxColor, comboBoxProjection, _srsState, listBoxClientLayers, _clientLayerState);
            _featureLayerState = new FeatureLayerState(mapControlWms);
            _serverList = new ServerList(comboBoxServers);

            _currentToolButton = toolBarButtonZoomIn;
            _currentToolButton.Pushed = true;
            mapControlWms.Tools.LeftButtonTool = _currentToolButton.Tag as string;
            mapControlWms.Map.DrawEvent += new MapInfo.Mapping.MapDrawEventHandler(Map_DrawEvent);
            mapControlWms.PaintException += new PaintExceptionEventHandler(mapControlWms_PaintException);

            ToolBarSetup();
            _serverList.Set();
        }