摘要: /// /// 将output.config内容传到app.config /// string ReadString; //两个地址 string path1 = @"D:\wcf\xml文件读写\Xml_WirteOrR... 阅读全文
posted @ 2015-02-27 15:04 千年问心 阅读(181) 评论(0) 推荐(0) 编辑
摘要: WCF服务。利用循环,读取配置文件,打开所有的代理服务 和关闭代理服务的方法 //list列表 ,用于存储打开的服务列表 List _host = new List(); /// /// 批量打开服务 /// public ... 阅读全文
posted @ 2015-02-26 17:28 千年问心 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 第一步:定义委托 public delegate void wei(string ss);第二步:控制UI的方法public void get1(string ss) { richTextBox1.Text += ss; } 第三步:定义线程1 pu... 阅读全文
posted @ 2015-01-25 08:09 千年问心 阅读(368) 评论(0) 推荐(0) 编辑
摘要: MD5 加密using System.Security.Cryptography;public static string encrypherment(string password) { string StrEncipherment = ""; ... 阅读全文
posted @ 2015-01-24 10:36 千年问心 阅读(203) 评论(0) 推荐(0) 编辑
摘要: WCF实例化模式与高并发控制1.实例化模式InstanceModel1.1 PerCall:单调模式 每次调用都会产生一个实例 例[ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCall)]1.2 PerSession会话模... 阅读全文
posted @ 2015-01-23 08:08 千年问心 阅读(314) 评论(0) 推荐(0) 编辑
摘要: WCF支持Stream操作,尤其对于传递size过大的消息而言,如要考虑传递消息的效率,WCF推荐通过Stream进行操作。然而,WCF Stream操作规定了一些限制,在我们编写相关程序时,需要特别注意: 1、绑定的限制 如果需要使用Stream操作,可以使用的绑定只能是BasicHttpBi... 阅读全文
posted @ 2015-01-18 11:01 千年问心 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 蒋金楠 (Artech) WCF ,asp.net等 博客地址:http://www.cnblogs.com/artech/tag/WCF/伍华聪 博客地址:http://wuhuacong.cnblogs.com/关于C# datagridview 博客地址:http://www... 阅读全文
posted @ 2015-01-09 10:24 千年问心 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 今天 ,看的和学的都不多,就弄了一个spinner控件而已,下面就记录一下spinner 用法吧基本上说,使用spinner 有三个步骤一、在布局文件里面设置spinner 控件,这个不用再多说了;二、创建一个adapt(适配器),用于存储里面的列表项,我个人觉得这个是使用spinner比较麻烦,比... 阅读全文
posted @ 2014-01-23 22:12 千年问心 阅读(358) 评论(0) 推荐(0) 编辑
摘要: (一) 多个activity之间的跳转(无值传递)第一步:创建activity(其实就是jave文件),并进行注册 在AndroidManifest.xml中 第二步:实例化intentIntent intent=new Intent();设置跳转的页面intent.setClass(当前页面的activity.this, 要跳转过去的页面的activity.class); 启动跳转 activity2.this.startActivity(intent);(二)多个activity之间的跳转(有值传递) 基本用法 和上面的一样 在传值时调用 Intent变量名.putExtra(" 阅读全文
posted @ 2014-01-22 22:01 千年问心 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 点击项目run,报了这样的错,前几天都好好的:[2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] ------------------------------[2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] Android Launch![2013-09-14 15:27:13 - QualityPicture_Client1.3.1.9.7.1] The connection to adb is down, and a severe error has occured 阅读全文
posted @ 2014-01-22 21:18 千年问心 阅读(214) 评论(0) 推荐(0) 编辑