摘要: 一:图片 IService1.cs是定义的接口,包含对Service、方法和方法用的类的声明的声明 Service1.cs是对接口的实现,包含实现的方法 代码注释: using System; using System.Collections.Generic; using System.Linq; 阅读全文
posted @ 2015-02-04 17:47 HongMaJu 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 一:截图 二:XAML代码 <UserControl x:Class="SilverlightClock.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schem 阅读全文
posted @ 2015-02-04 10:43 HongMaJu 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 一:输入姓名并选中一个日期,将在下面显示 二:XAML代码 <UserControl x:Class="HelloSilverlight.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns 阅读全文
posted @ 2015-02-04 10:38 HongMaJu 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 一:描述,将读取的文档标题添加到下拉框中二:代码 #region 方法:得到Word文档标题的内容 public static List GetTitles(int j,int m)//标题深度,标题字符个数选取标准 { List title = ... 阅读全文
posted @ 2015-02-04 10:25 HongMaJu 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 一:组件添加到工具栏要在应用程序中应用OTGisX控件,首先要把所下载的OTGisX组件添加到.Net工程中。并将其添加到工具箱托盘中。添加方式为:在工具箱上单击右键,选择“选择项”,会出现“选择工具箱项”对话框,在“COM组件”属性页,选择浏览,找到OTGisX.ocx添加到工具箱项。这时工具箱中... 阅读全文
posted @ 2015-02-04 10:12 HongMaJu 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 一:效果,放到图片上会显示文字,单击触发一个事件二:实现原理将两张图片重合,点击是另一张图片,如下图,根据颜色来判断点击的是那个图片对象三:代码using System;using System.Collections.Generic;using System.ComponentModel;usin... 阅读全文
posted @ 2015-02-04 09:43 HongMaJu 阅读(4144) 评论(0) 推荐(0) 编辑
摘要: 一:基础定义 #region 定义线尾、线头为箭头、字体和笔刷 Pen p = new Pen(Color.Black, 1);//定义画笔 蓝色,宽度为1(坐标显示颜色) p.EndCap = LineCap.ArrowAnchor;//... 阅读全文
posted @ 2015-02-04 09:02 HongMaJu 阅读(1573) 评论(0) 推荐(0) 编辑