示例#1
0
 void IDisposable.Dispose()
 {
     if (_mosaicProjectionFileProvider != null)
     {
         _mosaicProjectionFileProvider.DataIdentifyChanged -= new Action <DataIdentify, IRasterDataProvider>(_mosaicProjectionFileProvider_DataIdentifyChanged);
         _mosaicProjectionFileProvider.Dispose();
         _mosaicProjectionFileProvider.Clear();
     }
     if (_curFileHost != null)
     {
         _curFileHost.Dispose();
         _curFileHost = null;
     }
     if (_aoiHost != null)
     {
         _aoiHost.Dispose();
         _aoiHost = null;
     }
     if (_simpleMapControl != null)
     {
         (_simpleMapControl as UCSimpleMapControl).AOIIsChanged -= new EventHandler(map_AOIIsChanged);
         (_simpleMapControl as UCSimpleMapControl).Dispose();
         _simpleMapControl = null;
     }
     ucPrjEnvelopes1.OnEnvelopeChanged -= new EventHandler(ucPrjEnvelopes1_OnEnvelopeChanged);
     tvInputFiles.NodeMouseDoubleClick -= new TreeNodeMouseClickEventHandler(treeView1_NodeMouseDoubleClick);
     _progress = null;
 }
示例#2
0
        private void CreateMapControl()
        {
            UCSimpleMapControl map = new UCSimpleMapControl();

            _simpleMapControl = map as ISimpleMapControl;
            map.Dock          = DockStyle.Fill;
            this.panelRight.Controls.Add(map);
            map.AOIIsChanged += new EventHandler(map_AOIIsChanged);
            map.Load         += new EventHandler(map_Load);
        }
示例#3
0
        private void LoadMapViews()
        {
            UCSimpleMapControl map = new UCSimpleMapControl();

            _simpleMapControl = map as ISimpleMapControl;
            map.AOIIsChanged += new EventHandler(map_AOIIsChanged);
            map.Dock          = DockStyle.Fill;
            cvPanel.Visible   = true;
            cvPanel.Controls.Add(map);            //
            map.Load += new EventHandler(map_Load);
        }
示例#4
0
 private void LoadMapViews()
 {
     try
     {
         UCSimpleMapControl map = new UCSimpleMapControl();
         _simpleMapControl = map as ISimpleMapControl;
         map.Dock          = DockStyle.Fill;
         cvPanel.Visible   = true;
         cvPanel.Controls.Add(map);
         map.Load += new EventHandler(map_Load);
     }
     catch
     {
         MsgBox.ShowInfo("缩略图加载失败,暂时不能使用缩略图功能");
     }
 }
示例#5
0
 private void LoadMapViews()
 {
     try
     {
         UCSimpleMapControl map = new UCSimpleMapControl();
         _simpleMapControl            = map as ISimpleMapControl;
         _simpleMapControl.IsAllowAOI = false;
         map.Dock         = DockStyle.Fill;
         mapPanel.Visible = true;
         mapPanel.Controls.Add(map);
         map.Load += new EventHandler(map_Load);
         map.MouseDoubleClickMap += new Action <MouseEventArgs, double, double>(map_MouseDoubleClickMap);
     }
     catch
     {
         MsgBox.ShowInfo("缩略图加载失败,暂时不能使用缩略图功能");
     }
 }