02 2013 档案

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SmiUDuck{ class Program { public abstract class Duck { public void Quack() { Console.WriteLine("呱呱叫"); } public void Swim() ... 阅读全文
posted @ 2013-02-27 22:20 焦涛 阅读(254) 评论(0) 推荐(0) 编辑
摘要:(一)C#生成PDF总结(1)iTextSharp控件对iTextSharp研究还可以表格、文字、各种GDI对象,图片,水印,文字旋转(2)aspose的控件(3)PDF Library这个类库(只单纯是有文字的,表格和文字)http://www.codeproject.com/KB/dotnet/PdfLibrary.aspx (4)直接用.net的RDLC report 就可以啦,to PDF效果很好,也可以对付用户有变数,可以to 其他格式.(二)iTextSharp生成PDF示列using System;using System.Collections.Generic;using Sy 阅读全文
posted @ 2013-02-26 17:37 焦涛 阅读(73854) 评论(10) 推荐(8) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;//自己的总结://(1)当成员抛出异常时对性能的影响是指数级//(2)不要因异常可能对性能造成负面影响而使用错误码//(3)提高性能可以使用Tester-Doer模式或Try-Parse模式//(4)异常是向上传递,层层上抛,我们可以在每个子方面中thow具体异常并附加更多信息,在主方面中捕获这些异常.using System.Runtime.Serialization;namespace Exce 阅读全文
posted @ 2013-02-07 15:14 焦涛 阅读(1017) 评论(0) 推荐(1) 编辑
摘要:(一)什么时路由事件 功能定义:路由事件是一种可以针对元素树中的多个侦听器(而不是仅针对引发该事件的对象)调用处理程序的事件。 实现定义:路由事件是一个 CLR 事件,可以由 RoutedEvent 类的实例提供支持并由 Windows Presentation Foundation (WPF) 事件系统来处理 (二)路由事件的划分 (1)冒泡:针对事件源调用事件处理程序。路由事件随后会路由到后续的父元素,直到到达元素树的根。 (2)隧道:最初将在元素树的根处调用事件处理程序。随后,路由事件将朝着路由事件的源节点元素(即引发路由事件的元素)方向,沿路由线路传播到... 阅读全文
posted @ 2013-02-06 13:44 焦涛 阅读(660) 评论(0) 推荐(0) 编辑
摘要:在做项目中碰到一个问题,一组RadioButton被同一个页面调用多次,发现调用多次中只一组的RadioButton某一项被选中。但是如果是CheckBox 可以多次被选中,那需要每次动态指定RadioButton的GroupName,看如下例子。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.Wind 阅读全文
posted @ 2013-02-05 10:11 焦涛 阅读(273) 评论(0) 推荐(0) 编辑
摘要:(一)UI实现代码如下:<Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> 阅读全文
posted @ 2013-02-05 09:52 焦涛 阅读(8416) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示