摘要: DataTable ReturnDt = new DataTable("Tab_Result"); ReturnDt.Columns.AddRange(new DataColumn[] { new... 阅读全文
posted @ 2014-10-15 13:43 如梦不是梦 阅读(3594) 评论(0) 推荐(0) 编辑
摘要: 效果如图所示, ... 阅读全文
posted @ 2014-05-21 15:56 如梦不是梦 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 给我们的应用程序做个版本更新服务,展示一个安装程序如何实现自动更新. //服务组,添加需要的任何服务 public enum ServerEnum { AutoupdateService,//自动升级 AutoBack,//自动备份 AutoLog//日志服务 } //服务控制器 public class ServerController { public void RunServer(ServerEnum ser) { switch (ser) ... 阅读全文
posted @ 2013-09-08 14:13 如梦不是梦 阅读(682) 评论(0) 推荐(0) 编辑
摘要: //类对象构造模版,无new访问,类似静态访问var Class = { create: function () { return function () { //initialize初始化 //apply应用变更,可以反复请求 //arguments参数 this.initialize.apply(this, arguments) }; }, //模拟抽象方法,可以随便自己定 Show: function () { }};//模拟继承... 阅读全文
posted @ 2013-09-07 22:22 如梦不是梦 阅读(742) 评论(0) 推荐(1) 编辑
摘要: 直接看js好了,模拟创建一个奥运会function 奥运会Class(主题) { // 删除主题 // delete this.主题; this.主题 = 主题; this.开幕时间; this.闭幕时间; this.公告簿 = ""; //模拟开幕 this.开幕 = function () { this.开幕时间 = "2012年7月28日03时12分(北京时间)"; this.公告薄 = "奥运主题:" + this.主题 + "\n" + "开幕时间:" + this.开幕时间 + &q 阅读全文
posted @ 2013-09-07 11:00 如梦不是梦 阅读(3489) 评论(7) 推荐(1) 编辑
摘要: 我们可以先看下简单效果,打开2个页面可以看到推送效果服务端我们只需要下面一个方法using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class pagepush : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } protec... 阅读全文
posted @ 2013-08-19 22:33 如梦不是梦 阅读(888) 评论(1) 推荐(1) 编辑
摘要: 我们先创建一个简单空web应用程序然后添加新建项目//我们创建一个peson对象,产生数据标识返回using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;namespace 创建简单的WebService服务{ /// /// WebService1 的摘要说明 /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(C... 阅读全文
posted @ 2013-08-18 16:17 如梦不是梦 阅读(1275) 评论(2) 推荐(1) 编辑
摘要: 面向服务架构面向服务的体系结构(service-oriented architecture,SOA)是一个组件模型,它将应用程序的不同功能单元(称为服务)通过这些服务之间定义良好的接口和契约联系起来。接口是采用中立的方式进行定义的,它应该独立于实现服务的硬件平台、操作系统和编程语言。这使得构建在各种这样的系统中的服务可以以一种统一和通用的方式进行交互。目简介特征元素利用价值SOA特性概述服务架构服务品质SOA 不是Web服务SOA的优势展开简介特征元素利用价值SOA特性概述服务架构服务品质SOA 不是Web服务SOA的优势展开简介这种具有中立的接口定义(没有强制绑定到特定的实现上)的特征称为服 阅读全文
posted @ 2013-08-18 14:09 如梦不是梦 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 我们先看看效果如何:xaml文件: 我们具体看看代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Wind... 阅读全文
posted @ 2013-08-04 22:36 如梦不是梦 阅读(748) 评论(0) 推荐(0) 编辑
摘要: 我们创建一个wpf应用程序,我们把里面的xaml文件全部删除,添加一个新类:如下图:然后我们cs文件中的代码:using System;using System.Collections.Generic;using System.Text;using System.Windows.Controls;using System.Windows;using System.Windows.Media;using System.Windows.Shapes;namespace 无xaml的WPF{ //首先继承System.Windows.Application对象 class subMain... 阅读全文
posted @ 2013-08-04 11:48 如梦不是梦 阅读(494) 评论(0) 推荐(0) 编辑