上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 45 下一页
该文被密码保护。 阅读全文
posted @ 2013-03-27 22:47 焦涛 阅读(4) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-03-27 22:35 焦涛 阅读(1) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-03-27 18:29 焦涛 阅读(3) 评论(0) 推荐(0)
摘要: 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 焦涛 阅读(265) 评论(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 焦涛 阅读(74066) 评论(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 焦涛 阅读(1029) 评论(0) 推荐(1)
摘要: (一)什么时路由事件 功能定义:路由事件是一种可以针对元素树中的多个侦听器(而不是仅针对引发该事件的对象)调用处理程序的事件。 实现定义:路由事件是一个 CLR 事件,可以由 RoutedEvent 类的实例提供支持并由 Windows Presentation Foundation (WPF) 事件系统来处理 (二)路由事件的划分 (1)冒泡:针对事件源调用事件处理程序。路由事件随后会路由到后续的父元素,直到到达元素树的根。 (2)隧道:最初将在元素树的根处调用事件处理程序。随后,路由事件将朝着路由事件的源节点元素(即引发路由事件的元素)方向,沿路由线路传播到... 阅读全文
posted @ 2013-02-06 13:44 焦涛 阅读(672) 评论(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 焦涛 阅读(280) 评论(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 焦涛 阅读(8474) 评论(0) 推荐(1)
摘要: 在做WPF项目的时候我们往往需要把前台代码写在后台,这样控制更灵活,减少代码量。下面一个列子展示了后台实现绑定,数据转换Convert,Grid布局后台写法。 下面直接贴代码(一)前台代码<Window x:Class="BindingDemo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local 阅读全文
posted @ 2013-01-22 21:47 焦涛 阅读(13049) 评论(1) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 45 下一页