摘要: 面开始配置环境变量,右击【我的电脑】---【属性】-----【高级】---【环境变量】选择【新建系统变量】--弹出“新建系统变量”对话框,在“变量名”文本框输入“JAVA_HOME”,在“变量值”文本框输入JDK的安装路径(也就是步骤5的文件夹路径),单击“确定”按钮。C:\Program File... 阅读全文
posted @ 2014-05-11 21:56 Xsi64 阅读(108) 评论(0) 推荐(0) 编辑
摘要: http://www.tutorialspoint.com/java/index.htm 阅读全文
posted @ 2014-05-11 09:08 Xsi64 阅读(199) 评论(0) 推荐(0) 编辑
摘要: String path = "G:\\test.txt"; BufferedWriter write = null; try { write = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(path)... 阅读全文
posted @ 2014-05-11 00:04 Xsi64 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 当我们使用MyEclipse编辑代码的时候按住“Ctrl+/”,就能获得代码提示,或者使用“.”的时候就会“点”出属性或方法等,而且提示还会有延迟。如果我们想无论是按下“.”、“Ctrl+/”甚至是任何字母都能获得代码提示,就像Visual Studio那样,并且没有提示延迟,该怎么设置呢?打开My... 阅读全文
posted @ 2014-05-09 23:53 Xsi64 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 绿色版本,解压缩D:\Software\mysql-advanced-5.6.18-winx64my-default.ini 改名my.inimy.ini内容如下# For advice on how to change settings please see# http://dev.mysql.c... 阅读全文
posted @ 2014-05-09 23:15 Xsi64 阅读(4536) 评论(0) 推荐(0) 编辑
摘要: public static void CreateShortCutByMyComputer(Guid id, string name, string description, string path, string icon) { RegistryKey root = Registry.ClassesRoot; RegistryKey clsid = root.OpenSubKey("CLSID", true); RegistryKey key = CreateOrGetSubKey(clsid, string.F... 阅读全文
posted @ 2014-02-13 16:15 Xsi64 阅读(821) 评论(0) 推荐(0) 编辑
摘要: public class PopupNonTopmost : Popup { public static DependencyProperty TopmostProperty = Window.TopmostProperty.AddOwner( typeof(PopupNonTopmost), new FrameworkPropertyMetadata(false, OnTopmostChanged)); public bool Topmost { get { return (bo... 阅读全文
posted @ 2014-01-23 16:56 Xsi64 阅读(218) 评论(0) 推荐(0) 编辑
摘要: public class SpeedLimit { private const int BalancerUp = 50; private const int BalancerDown = -75; private double _CurrentWait; private bool _Enabled; private double _MaxLimit; private OperationListControl _OperationListControl = null; public Func ... 阅读全文
posted @ 2014-01-07 09:55 Xsi64 阅读(317) 评论(0) 推荐(0) 编辑
摘要: /// /// MainWindow.xaml 的交互逻辑 /// public partial class MainWindow : Window { SynchronizationContext _uiContext = SynchronizationContext.Current; public MainWindow() { InitializeComponent(); } private void Button_Click(object sender, RoutedE... 阅读全文
posted @ 2013-12-05 00:49 Xsi64 阅读(192) 评论(0) 推荐(0) 编辑
摘要: /// /// MainWindow.xaml 的交互逻辑 /// public partial class MainWindow : Window { [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern int RegisterWindowMessage(string msg); private HwndSource _HwndSource = null; private IntPtr _Handler = In... 阅读全文
posted @ 2013-10-16 10:16 Xsi64 阅读(198) 评论(0) 推荐(0) 编辑