- 博客(14)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 C# 文件合并与还原
在工作要用到几个文件合并在一起打包 然后在另外一个C/S 上面来获取解析合并这几个文件,想到用压缩的做法 貌似要需要很多api 刚好参照T-L-V格式的方式自定义个类似的规格在合并及还原文件。 F-文件标识 N-文件名字标识 L-文件名字所占用的长度 Value- 文件名称内容 C-文件内容标识 L-长度 Value-文件内容文件合并转换成byte数组
2014-01-23 14:37:03
1013
原创 WPF 通过使用Frame 加载kindeditor文本编辑器
最近在做WPF 客户端发送信息的功能 想要实现发送的信息包含超链接 图片等等,由于以前WEB做过文本编辑器 所以打算通过Frame 加载html页面来实现文本的编辑 然后调用C#代码取得文本编辑器里面的html。 XAML代码<Window x:Class="WpfApplication3.MainWindow" xmlns="http://schemas.micr
2013-12-06 14:56:38
2389
1
原创 nuity 学习之路 二、配置
一、接口及实现类namespace MyUnity{ public interface IComputer { double GetResult(double numA, double numB); } public class MulOperation : IComputer { public double GetR
2013-03-23 22:25:42
580
原创 nuity 学习之路 一、简单应用
一、 学了J2EE的spring 后,着手研究下.net的 ioc框架,在mvc 4 中集成unity的框架的案例较多,所以选择学习这个轻量级的ioc框架。依赖注入的核心是要有抽象,否则何来注入了。所以先定义一个计算接口namespace MyUnity{ public interface IComputer { double GetResult(do
2013-03-22 20:51:12
817
原创 WPF MVVM DataGird 数据分页
一、原理及效果图 二、视图Model public class Student { public int Id { get; set; } public string Name { get; set; } public string Address { get; set; } public int Age {
2013-01-23 22:56:15
3079
原创 WPF TreeView自定义数据模板展开到指定层
TreeView 全部展开还是挺方便的只需设置TreeViewItem 样式即可全部展开,但展开到具体某一级就需要手工代码实现。如果TreeView 没有自定义数据模板 节点继承TreeViewItem 那么树的展开可以参考 MSDN博客 点击打开链接public static class ExtensionMethods{ public static void ExpandAll(t
2013-01-06 02:48:05
3557
原创 WPF TreeView使用的简单案例
<UserControl x:Class="cldd.WPFCompanyTree" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2012-12-23 22:31:53
1862
原创 C#获取目录下及子目录所有文件
static List list = new List(); static void GetFile(string path) { DirectoryInfo info = new DirectoryInfo(path); info.GetDirectories().ToList().ForEach(s => GetFile(s.F
2012-12-23 22:23:21
831
原创 C语言链表的各项操作
#include typedef char data;typedef struct Node List;struct Node{ data r[100]; struct Node *next;};int length=0; //链表长度void ListInit(List *L){ L=(List*)malloc(sizeof(List)); L->next=NULL;
2012-12-03 01:06:09
425
原创 HDU1010 Tempter of the Bone
import java.util.Scanner;public class HDU1010 { /** * @param Tempter * of the Bone */ static int n, m; static int dirArr[][] = new int[][] { { 1, 0 }, { 0, 1 }, { -1, 0 }, {
2012-09-20 17:39:47
281
原创 HDU1044 Collect More Jewels
Problem DescriptionIt is written in the Book of The Lady: After the Creation, the cruel god Moloch rebelled against the authority of Marduk the Creator.Moloch stole from Marduk the most powerful of
2012-09-20 17:32:52
405
原创 Java反射 配置文件 工厂方法综合实例
Java反射配置文件工厂方法综合实例配置文件读取类:package hyhref; import java.io.File;import java.io.IOException; import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuil
2012-07-12 11:43:47
775
1
原创 设计模式总结
设计模式总结 一、创建型模式简单工厂简单工厂最大优点在于工厂类中包含了必要的逻辑判断(switch),根据客户端的选择条件动态实例化相关的类,对于客户端来说,去除了与具体产品的依赖。工厂方法工厂方法模式(FactoryMethod),定义一个用于创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个类的实例化延迟到其子类。 工厂方法
2012-07-12 11:31:30
597
2
Oracle分区表中同时存在一级分区与二级分区情况下,二级分区条件过滤无效
2017-05-17
TA创建的收藏夹 TA关注的收藏夹
TA关注的人