⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 markersymselect.cs

📁 一个可读取显示arigis下的severstyle文件的程序.
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using ESRI.ArcGIS.Display;
namespace SymbolViewer
{
	/// <summary>
	/// ServerStyleViewer 的摘要说明。
	/// </summary>
	public class ServerStyleViewer : System.Windows.Forms.Form
	{
		private System.Windows.Forms.ImageList imageList1;
		
		private IStyleGalleryStorage	pStyleGalleryStorage;
		private IStyleGallery			pStyleGallery;
		private string					CurrentStyleGalleryClass	  = "";
		private int						CurrentStyleGalleryClassIndex = -1;
		private string					CurrentCategoryName;
		private string					CurrentStyleFile;
		private System.Windows.Forms.Splitter splitter1;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.ComboBox cbxCategory;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.ToolBar tbViewStyle;
		private System.Windows.Forms.ToolBarButton tbtLargeIcon;
		private System.Windows.Forms.ToolBarButton tbtSmallIcon;
		private System.Windows.Forms.ToolBarButton tbtDetail;
		private System.Windows.Forms.Button btClose;
		private System.Windows.Forms.ListView lvSymbolView;
		private System.Windows.Forms.Button btOpen;
		private System.Windows.Forms.TreeView tvStyleFileTree;
		private System.Windows.Forms.ImageList imageList2;
		private System.ComponentModel.IContainer components;	
		private bool bControlEvent = false;
		public ServerStyleViewer()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ServerStyleViewer));
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.tvStyleFileTree = new System.Windows.Forms.TreeView();
			this.imageList2 = new System.Windows.Forms.ImageList(this.components);
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.panel2 = new System.Windows.Forms.Panel();
			this.btOpen = new System.Windows.Forms.Button();
			this.cbxCategory = new System.Windows.Forms.ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.panel1 = new System.Windows.Forms.Panel();
			this.tbViewStyle = new System.Windows.Forms.ToolBar();
			this.tbtLargeIcon = new System.Windows.Forms.ToolBarButton();
			this.tbtSmallIcon = new System.Windows.Forms.ToolBarButton();
			this.tbtDetail = new System.Windows.Forms.ToolBarButton();
			this.btClose = new System.Windows.Forms.Button();
			this.lvSymbolView = new System.Windows.Forms.ListView();
			this.panel2.SuspendLayout();
			this.panel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// imageList1
			// 
			this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
			this.imageList1.ImageSize = new System.Drawing.Size(24, 24);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// tvStyleFileTree
			// 
			this.tvStyleFileTree.Dock = System.Windows.Forms.DockStyle.Left;
			this.tvStyleFileTree.ImageList = this.imageList2;
			this.tvStyleFileTree.Location = new System.Drawing.Point(0, 0);
			this.tvStyleFileTree.Name = "tvStyleFileTree";
			this.tvStyleFileTree.SelectedImageIndex = 1;
			this.tvStyleFileTree.Size = new System.Drawing.Size(168, 439);
			this.tvStyleFileTree.TabIndex = 22;
			this.tvStyleFileTree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tvStyleFileTree_AfterSelect);
			// 
			// imageList2
			// 
			this.imageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
			this.imageList2.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList2.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream")));
			this.imageList2.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// splitter1
			// 
			this.splitter1.Location = new System.Drawing.Point(168, 0);
			this.splitter1.Name = "splitter1";
			this.splitter1.Size = new System.Drawing.Size(3, 439);
			this.splitter1.TabIndex = 24;
			this.splitter1.TabStop = false;
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.btOpen);
			this.panel2.Controls.Add(this.cbxCategory);
			this.panel2.Controls.Add(this.label2);
			this.panel2.Controls.Add(this.panel1);
			this.panel2.Controls.Add(this.btClose);
			this.panel2.Controls.Add(this.lvSymbolView);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panel2.Location = new System.Drawing.Point(171, 0);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(479, 439);
			this.panel2.TabIndex = 25;
			// 
			// btOpen
			// 
			this.btOpen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.btOpen.Location = new System.Drawing.Point(392, 5);
			this.btOpen.Name = "btOpen";
			this.btOpen.TabIndex = 30;
			this.btOpen.Text = "Open(&O)...";
			this.btOpen.Click += new System.EventHandler(this.btOpen_Click);
			// 
			// cbxCategory
			// 
			this.cbxCategory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cbxCategory.Location = new System.Drawing.Point(60, 6);
			this.cbxCategory.Name = "cbxCategory";
			this.cbxCategory.Size = new System.Drawing.Size(224, 20);
			this.cbxCategory.TabIndex = 25;
			this.cbxCategory.SelectedIndexChanged += new System.EventHandler(this.cbxCategory_SelectedIndexChanged);
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(3, 9);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(60, 17);
			this.label2.TabIndex = 29;
			this.label2.Text = "Category:";
			// 
			// panel1
			// 
			this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.panel1.Controls.Add(this.tbViewStyle);
			this.panel1.Location = new System.Drawing.Point(2, 401);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(230, 32);
			this.panel1.TabIndex = 28;
			// 
			// tbViewStyle
			// 
			this.tbViewStyle.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
			this.tbViewStyle.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						   this.tbtLargeIcon,
																						   this.tbtSmallIcon,
																						   this.tbtDetail});
			this.tbViewStyle.DropDownArrows = true;
			this.tbViewStyle.ImageList = this.imageList1;
			this.tbViewStyle.Location = new System.Drawing.Point(0, 0);
			this.tbViewStyle.Name = "tbViewStyle";
			this.tbViewStyle.ShowToolTips = true;
			this.tbViewStyle.Size = new System.Drawing.Size(226, 36);
			this.tbViewStyle.TabIndex = 0;
			this.tbViewStyle.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right;
			this.tbViewStyle.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.tbViewStyle_ButtonClick);
			// 
			// tbtLargeIcon
			// 
			this.tbtLargeIcon.ImageIndex = 0;
			this.tbtLargeIcon.Pushed = true;
			this.tbtLargeIcon.Text = "Large";
			this.tbtLargeIcon.ToolTipText = "View Large ICON";
			// 
			// tbtSmallIcon
			// 
			this.tbtSmallIcon.ImageIndex = 1;
			this.tbtSmallIcon.Text = "Small";
			this.tbtSmallIcon.ToolTipText = "View Small ICON";
			// 
			// tbtDetail
			// 
			this.tbtDetail.ImageIndex = 2;
			this.tbtDetail.Text = "Detail";
			this.tbtDetail.ToolTipText = "View Detail";
			// 
			// btClose
			// 
			this.btClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.btClose.Location = new System.Drawing.Point(400, 405);
			this.btClose.Name = "btClose";
			this.btClose.Size = new System.Drawing.Size(72, 23);
			this.btClose.TabIndex = 27;
			this.btClose.Text = "Close(&C)";
			// 
			// lvSymbolView
			// 
			this.lvSymbolView.AllowColumnReorder = true;
			this.lvSymbolView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.lvSymbolView.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.lvSymbolView.Location = new System.Drawing.Point(0, 37);
			this.lvSymbolView.MultiSelect = false;
			this.lvSymbolView.Name = "lvSymbolView";
			this.lvSymbolView.Size = new System.Drawing.Size(472, 360);
			this.lvSymbolView.Sorting = System.Windows.Forms.SortOrder.Ascending;
			this.lvSymbolView.TabIndex = 24;
			// 
			// ServerStyleViewer
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(650, 439);
			this.Controls.Add(this.panel2);
			this.Controls.Add(this.splitter1);
			this.Controls.Add(this.tvStyleFileTree);
			this.Name = "ServerStyleViewer";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "ServerStyle符号查看器";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.ServerStyleViewer_Closing);
			this.Load += new System.EventHandler(this.ServerStyleViewer_Load);
			this.Closed += new System.EventHandler(this.ServerStyleViewer_Closed);
			this.panel2.ResumeLayout(false);
			this.panel1.ResumeLayout(false);
			this.ResumeLayout(false);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -