摘要:
chartControl1.RuntimeSelection = true;chartControl1.RuntimeSeriesSelectionMode = SeriesSelectionMode.Point;chartControl1.MouseClick += new MouseEventHandler(Chart_MouseClick); public void Chart_MouseClick(object sender, MouseEventArgs e) { ChartHitInfo hi = chartControl1.CalcHitInf... 阅读全文
随笔分类 - 数据解析
图表处理ZedGraph
2012-12-16 19:57 by hongjiumu, 212 阅读, 收藏,
摘要:
ZedGraphhttp://sourceforge.net/projects/zedgraph/files/zedgraph%20source/图表处理 阅读全文
(转)EXCEL2007存储格式xlsx
2012-12-09 17:26 by hongjiumu, 3170 阅读, 收藏,
摘要:
EXCEL2007中文档采用了新的存储方式——xlsx,试用过的都知道。 但只有部分人知道,这是采用了可扩展标识语言(Extensible Markup Language)进行存储。要验证很简单,新建一个工作簿,保存后退出。把保存的工作簿假设是book1.xlsx,扩展名改为.rar,解压缩,你会发现居然可以解压出文件!再从解压缩的文件中,你会看到文件都是以xml(或是rels)文件,用记事本打开,<?xml version="1.0" encoding="UTF-8" standalone="yes"?> XML语言的标 阅读全文
Aspose.Cells Excel to datatable 超级快!
2012-12-09 17:04 by hongjiumu, 1005 阅读, 收藏,
摘要:
Aspose.CellsExcel to datatable 超级快!class Program { private static string _vsPath = @"D:\work\1207\Parametros OMC_new_Marcelo_imported.xlsm"; private static DateTime _vdtStart; static void Main(string[] args) { Workbook workbook = new Workbook(); ... 阅读全文
winform中跨Thread修改ui
2012-12-09 16:55 by hongjiumu, 304 阅读, 收藏,
摘要:
winform中跨Thread修改ui:private Progress GetProgress(Progress progress){this.Invoke((MethodInvoker)delegate() {progressBar1.Value = (int)(progress.PostCount * 99 / progress.TotalCount);progressBar1.Refresh();});return progress;} 阅读全文
What is the fastest, case insensitive, way to see if a string contains another string in C#?
2012-12-01 10:29 by hongjiumu, 199 阅读, 收藏,
摘要:
Since ToUpper would actually result in a new string being created, StringComparison.OrdinalIgnoreCase would be faster, also, regex has a lot of overhead for a simple compare like this. That said, String.IndexOf(String, StringComparison.OrdinalIgnoreCase) should be the fastest, since it does not invo 阅读全文
System.IO.StreamWriter写文件
2012-11-25 12:28 by hongjiumu, 3584 阅读, 收藏,
摘要:
public void WriteFile(string filepath, List<string> list) { int index = 0; System.IO.FileStream fileStream = new System.IO.FileStream(filepath,System.IO.FileMode.Create); System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(fileStream); //streamWriter.Write(content); streamWriter.F 阅读全文
不用继承接口,一样可以把一个没有继承接口的类来实例化接口
2012-11-17 11:34 by hongjiumu, 346 阅读, 收藏,
摘要:
public interface IName { int Age { get; set; } string Name { get; set; } } public class Person { public int Age{get;set;} public string Name { get; set; } public Person() { } public Person(string name,int age) { Name = name; Age = age; } } public class EmptyEntity : IName { public string Name { get; 阅读全文
浙公网安备 33010602011771号