摘要:
class HSLColor { private int _alpha = 255; public int _hue = 0; public double _saturation = 1d; public double _lightness = 1d; //public double H; //pu 阅读全文
摘要:
public Window() { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; this.Topmost = true; } 阅读全文
摘要:
https://www.cnblogs.com/smiler/archive/2013/07/14/3189450.html http://blog.csdn.net/dh164645822/article/details/76229741 阅读全文
摘要:
public string[] GetOpenFileDialogReturnFileFullName(bool multiSelect = false) { System.Windows.Forms.OpenFileDialog opdialog = new System.Windows.Form 阅读全文
摘要:
private void TryConnect(System.Action action) { int retries = 3; while(true) { try { action(); break; //success! } catch { if (--retries == 0) { //... 阅读全文
摘要:
finally 代码块中的代码是 try-catch 结构执行完后无论有无异常发生都会执行的。finally 代码块中的代码是 try-catch 结构执行完后无论有无异常发生都会执行的。finally 代码块中的代码是 try-catch 结构执行完后无论有无异常发生都会执行的。 重要的事情说三遍 阅读全文
摘要:
string name = System.Text.RegularExpressions.Regex.Replace(url, "[<>/\\|:\"?*]", "");//将非法字符去除 阅读全文
摘要:
//获取文件MD5算法 private static string GetMD5FromFile(string fileName) { try { FileStream file = new FileStream(fileName, FileMode.Open); System.Security.C 阅读全文