摘要: 一句样式就ok了 阅读全文
posted @ 2013-11-09 15:15 ◆紅袖 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 不能登QQ了,如果有什么交流可以通过发送邮件:tosmile_liu@163.com 阅读全文
posted @ 2013-08-02 11:22 ◆紅袖 阅读(174) 评论(0) 推荐(0) 编辑
摘要: this.advTree1.DragDropEnabled = false; 阅读全文
posted @ 2013-08-02 11:21 ◆紅袖 阅读(229) 评论(0) 推荐(0) 编辑
摘要: //已知图层IFeatureLayer pFeatureLayer = this._application.MapControl2D.Map.get_Layer(0) as IFeatureLayer; IFeatureClass pFeatureClass = pFeatureLayer.FeatureClass; if (pFeatureClass.FeatureCount(null) > 0) { for (int i = 0; i < pFeatureClass.FeatureCount(null); i++) { IFeature pFeature = pFeatureC 阅读全文
posted @ 2013-07-30 17:44 ◆紅袖 阅读(789) 评论(0) 推荐(0) 编辑
摘要: 忘记sqlserver密码怎么办,先用本机账户登录,再执行以下代码就好ALTER LOGIN sa ENABLE GO ALTER LOGIN sa WITH PASSWORD = 'password' GOALTER LOGIN [sa] WITH PASSWORD = N'123456' --不用提供旧密码123456是新密码 阅读全文
posted @ 2013-07-30 17:43 ◆紅袖 阅读(250) 评论(0) 推荐(0) 编辑
摘要: public void CreateShapefiles() { //指定路径 string strShapeFolder = AppDomain.CurrentDomain.BaseDirectory; //文件名 string strShapeName = "DisasterShow"; string path = strShapeFolder + strShapeName + ".shp"; if (File.Exists(path)) { string strFilePath = System.IO.Path.GetDirectoryName(p 阅读全文
posted @ 2013-07-30 17:41 ◆紅袖 阅读(467) 评论(0) 推荐(0) 编辑
摘要: OpenFileDialog openfile = new OpenFileDialog(); openfile.Title = "打开地图"; openfile.Filter = "(*.fly,*.mxd,*.mpt)|*.fly;*.mxd;*.mpt";这个filter可以让文件选择框选择这三种文件 阅读全文
posted @ 2013-07-30 17:40 ◆紅袖 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 由于server中名称可能相同,所以用数组存放public static Dictionary ListServices_RESTAadmin(string restAdmin, string userName, string password, string folder) { string[] serverlist = new string[1]; Dictionary pServiceType = new Dictionary(); try { string token = GenerateAGSToken_RESTAdmin(restAdmin, userName, password) 阅读全文
posted @ 2013-07-30 16:39 ◆紅袖 阅读(709) 评论(0) 推荐(0) 编辑
摘要: C#编写最小化时隐藏为任务栏图标的 Window appllication. 1.设置WinForm窗体属性showinTask=false 2.加notifyicon控件notifyIcon1,为控件notifyIcon1的属性Icon添加一个icon图标。 3.添加窗体最小化事件(首先需要添加事件引用): this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged); //上面一行是主窗体InitializeComponent()方法中需要添加的引用 private void Form1_SizeChanged(ob 阅读全文
posted @ 2013-07-29 22:36 ◆紅袖 阅读(256) 评论(0) 推荐(0) 编辑
摘要: c#语音识别(上)-tts文字转语音功能 //需要先安装微软公司的speech sdk1.5using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using SpeechLib;//导入语音using System.Threading; //线程namespace Text2Speech{ public partial class Fo 阅读全文
posted @ 2013-07-29 22:35 ◆紅袖 阅读(400) 评论(0) 推荐(0) 编辑