随笔分类 -  C#

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ /// /// 复选框操作类 ... 阅读全文
posted @ 2014-05-07 13:50 慧由心生 阅读(4508) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using ZedGraph;namespace TestZedGraphCo... 阅读全文
posted @ 2014-05-07 13:47 慧由心生 阅读(5187) 评论(0) 推荐(0)
摘要:自己 整理了 下 代码 测试了下 还行。。。 #region 操作树视图控件 /// /// 自定义需要的类型 /// enum DatasetType { DTFeatureCla... 阅读全文
posted @ 2014-04-22 16:50 慧由心生 阅读(1045) 评论(0) 推荐(0)
摘要:1、错误 1 Files 的值“ < < < < < < < .mine”无效。路径中具有非法字符。使用SVN进行更新的时候,出现了如上问题,解决方法如下:直接把Debug下的文件给删除 或 在你的工程OBJ/DEBUG目录下,找到 工程名.csproj.FileListAbsolute.txt的文... 阅读全文
posted @ 2014-04-21 10:39 慧由心生 阅读(264) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Windows.Forms;namespace MyComman... 阅读全文
posted @ 2014-04-18 19:09 慧由心生 阅读(4082) 评论(0) 推荐(0)
摘要:更多:https://i.cnblogs.com/EditPosts.aspx?postid=3673943 阅读全文
posted @ 2014-04-18 19:06 慧由心生 阅读(2815) 评论(0) 推荐(0)
摘要:更多:https://i.cnblogs.com/EditPosts.aspx?postid=3673944 阅读全文
posted @ 2014-04-18 19:05 慧由心生 阅读(276) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace MyCommanHelper{ public class... 阅读全文
posted @ 2014-04-18 15:56 慧由心生 阅读(382) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyCommanHelper{ public class MathHelper { #region... 阅读全文
posted @ 2014-04-18 15:38 慧由心生 阅读(384) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;namespace MyCommanHelper{ //... 阅读全文
posted @ 2014-04-18 14:51 慧由心生 阅读(221) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Windows.Forms;namespace MyCommanHelper{... 阅读全文
posted @ 2014-04-18 14:50 慧由心生 阅读(227) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.OleDb;using System.Data;using System.Windows.Forms... 阅读全文
posted @ 2014-04-18 14:49 慧由心生 阅读(261) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MyCommanHelper{ public class ConvertHelper { #reg... 阅读全文
posted @ 2014-04-18 14:47 慧由心生 阅读(237) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using System.Drawing;using System.Collect... 阅读全文
posted @ 2014-04-18 14:44 慧由心生 阅读(2707) 评论(0) 推荐(0)
摘要:private int runProcess(string fileName, string appParam) { int returnValue = -1; try { Process... 阅读全文
posted @ 2014-02-19 19:04 慧由心生 阅读(9242) 评论(0) 推荐(0)
摘要:// Initialize unmanged memory to hold the array. int size = Marshal.SizeOf(bytes[0]) * bytes.Length; IntPtr pnt = Marshal.AllocHGlobal(size); try { // Copy the array to unmanaged memory. Marshal.Copy(bytes, 0, pnt, bytes.Length); // Copy the unmanaged array back to another managed array. double[]... 阅读全文
posted @ 2014-02-14 17:06 慧由心生 阅读(9012) 评论(0) 推荐(0)
摘要:设置当前线程的区域性public static void SetCurrentThreadCultureInfo(string name) { Properties.Resource.Culture = new System.Globalization.CultureInfo(name); var newName = name; switch (Properties.Resource.Culture.Name) { case "zh-CHS": newName = "zh-CN"; break; case "zh-CHT": newN 阅读全文
posted @ 2013-03-26 10:41 慧由心生 阅读(2068) 评论(2) 推荐(0)
摘要:如设置当前语言上下文:AppDomain.CurrentDomain.UnhandledException +=CurrentDomainUnhandledException;If(System.Configuration.ConfigurationManager.AppSettings[“Languange”] != null){ Resources.Culture = new CultureInfo(System.Configuration.ConfigurationManager.AppSettings[“Languange”] )}Common.Properties.Resources 阅读全文
posted @ 2013-03-26 10:23 慧由心生 阅读(242) 评论(0) 推荐(0)
摘要:我要测试的文件夹如下(首先设置问价的权限为ReadOnly 只读,代码将修改其为可读):‍代码如下:using System;using System.IO;namespace Attri{classProgram{staticvoidMain(string[] args){string path ... 阅读全文
posted @ 2013-03-05 16:40 慧由心生 阅读(412) 评论(0) 推荐(0)