Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Maps.cs
Package: 3sdnMap.rar [view]
Upload User: whsxdl
Upload Date: 2022-02-16
Package Size: 151k
Code Size: 3k
Category:
GIS program
Development Platform:
Visual C++
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Text;
- using System.Runtime.InteropServices;
- using ESRI.ArcGIS.Carto;
- namespace _sdnMap
- {
- [Guid("f27d8789-fbbc-4801-be78-0e3cd8fff9d5")]
- [ClassInterface(ClassInterfaceType.None)]
- [ProgId("_sdnMap.Maps")]
- public class Maps : IMaps, IDisposable
- {
- //class member - using internally an ArrayList to manage the Maps collection
- private ArrayList m_array = null;
- #region class constructor
- public Maps()
- {
- m_array = new ArrayList();
- }
- #endregion
- #region IDisposable Members
- /// <summary>
- /// Dispose the collection
- /// </summary>
- public void Dispose()
- {
- if (m_array != null)
- {
- m_array.Clear();
- m_array = null;
- }
- }
- #endregion
- #region IMaps Members
- /// <summary>
- /// Remove the Map at the given index
- /// </summary>
- /// <param name="Index"></param>
- public void RemoveAt(int Index)
- {
- if (Index > m_array.Count || Index < 0)
- throw new Exception("Maps::RemoveAt:rnIndex is out of range!");
- m_array.RemoveAt(Index);
- }
- /// <summary>
- /// Reset the Maps array
- /// </summary>
- public void Reset()
- {
- m_array.Clear();
- }
- /// <summary>
- /// Get the number of Maps in the collection
- /// </summary>
- public int Count
- {
- get
- {
- return m_array.Count;
- }
- }
- /// <summary>
- /// Return the Map at the given index
- /// </summary>
- /// <param name="Index"></param>
- /// <returns></returns>
- public IMap get_Item(int Index)
- {
- if (Index > m_array.Count || Index < 0)
- throw new Exception("Maps::get_Item:rnIndex is out of range!");
- return m_array[Index] as IMap;
- }
- /// <summary>
- /// Remove the instance of the given Map
- /// </summary>
- /// <param name="Map"></param>
- public void Remove(IMap Map)
- {
- m_array.Remove(Map);
- }
- /// <summary>
- /// Create a new Map, add it to the collection and return it to the caller
- /// </summary>
- /// <returns></returns>
- public IMap Create()
- {
- IMap newMap = new MapClass();
- m_array.Add(newMap);
- return newMap;
- }
- /// <summary>
- /// Add the given Map to the collection
- /// </summary>
- /// <param name="Map"></param>
- public void Add(IMap Map)
- {
- if (Map == null)
- throw new Exception("Maps::Add:rnNew Map is mot initialized!");
- m_array.Add(Map);
- }
- #endregion
- }
- }