- 博客(3)
- 收藏
- 关注
原创 Code Clean
读Code Clean有感,自我总结。 1.有意义的命名,使用所有人可以看懂、概括性强的命名。不怕长,但要清晰。 2.函数要尽量短小,短小到只做一件事。 3.团队制定统一的代码规范,不一定合适自己,但是适合团队。 4.最好的注释就是没有注释 ...
2020-07-29 17:35:53
414
原创 可移动线条(两端可移动,点击中间移动整个线条)
记录这篇博客方便自己时间久了可以回顾。 Xaml文件: <Window x:Class="Arrows.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20...
2019-02-20 16:00:50
606
转载 复制某个目录下的所有文件夹和文件
public static void CopyDir(string fromDir, string toDir) { if (!Directory.Exists(fromDir)) return; if (!Directory.Exists(toDir)) { ...
2019-02-19 09:35:50
316
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人