2013年11月2日
摘要:
public sealed class ConfigManger { public XDocument XmlDocs { set; get; } string path = @"{0}\Configuration\Server\{1}"; public ConfigManger() { LoadFiles(); } public static ConfigManger Instance { get { ...
阅读全文
posted @ 2013-11-02 15:57
无觉-李敏
阅读(223)
推荐(0)
2013年9月27日
摘要:
来这里都大半年了感觉每天几乎做的最多的就是UI,我勒个去这是要闹哪样?作为一名后端开发人员。。。这。。。。。几乎UI是我的全部了 这叫我情何以堪,之前拿到的 别家初级架构师的 offer的时候, 却选择了这里,我这是肿么了。。。无奈。不过想了下 不管什么职位基础的东西还是需要暂时的做下去的。。不然还能怎么想。。
阅读全文
posted @ 2013-09-27 15:55
无觉-李敏
阅读(161)
推荐(0)
2013年8月3日
摘要:
基本概念浏览器为了重新渲染部分或整个页面,重新计算页面元素位置和几何结构(geometries)的进程叫做 reflow(回流)。有时 reflow 页面中的一个元素会 reflow 它的祖先元素以及所有子元素。由于 reflow 的开销非常之大,因此要尽可能的避免 reflow 的发生。产生 reflow 的原因● 调整窗口大小;● 改变字体;● 增加或者移除样式表;● 内容变化,比如用户在 input 框中输入文字;● 激活 CSS 伪类,比如 :hover (IE 中为兄弟结点伪类的激活);● 操作 class 属性;● 脚本操作 DOM;● 计算 offsetWidth 和 offse
阅读全文
posted @ 2013-08-03 09:50
无觉-李敏
阅读(1144)
推荐(0)
2013年4月28日
摘要:
总体有这么几个优先级:Highest、AboveNormal、BelowNormal和Lowest可以通过设置 Thread 类的 priority 属性来设置,从而影响其优先级,以供调度器调度。(今天先这么点,后面待续)
阅读全文
posted @ 2013-04-28 08:25
无觉-李敏
阅读(201)
推荐(0)
2013年4月27日
摘要:
using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Drawing;using System.Drawing.Drawing2D;using System.Drawing.Imaging;namespace WuJian.Common{ /// <summary> /// 图片处理 /// http://www.cnblogs.com/wu-jian/ /// /// 吴剑 2011-02-20 创建 /// 吴剑 2012...
阅读全文
posted @ 2013-04-27 12:56
无觉-李敏
阅读(870)
推荐(0)
摘要:
static void Main(string[] args) { // 同步方式 Console.WriteLine("同步方式测试开始!"); SyncMethod(0); Console.WriteLine("同步方式结束!"); Console.ReadKey(); } // 同步操作 private static void SyncMethod(int input) { ...
阅读全文
posted @ 2013-04-27 09:46
无觉-李敏
阅读(492)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Diagnostics;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;namespace AnsyTestApp{ class Program { static void Main(string[] args) { //Action actInt=TestVote; ...
阅读全文
posted @ 2013-04-27 09:34
无觉-李敏
阅读(258)
推荐(0)
2013年4月26日
摘要:
public void GetImg() { var imgPath = @"C:\Users\Public\Pictures\Sample Pictures\Koala.jpg"; System.Drawing.Image image = new System.Drawing.Bitmap(imgPath); // int iStep = 100; int iStep = 256; int iLeft = 0, iTop = 0, iWidth =...
阅读全文
posted @ 2013-04-26 12:48
无觉-李敏
阅读(454)
推荐(0)
2013年4月12日
摘要:
[ServiceContract] public interface IService1 { [OperationContract] void UploadFile(FileUploadMessage request); } [MessageContract] public class FileUploadMessage { // 文件在根目录下的子文件夹名 [MessageHeader(MustUnderstand = true)] public...
阅读全文
posted @ 2013-04-12 21:02
无觉-李敏
阅读(328)
推荐(0)
摘要:
//客户端调用 using (FileStream fs = new FileStream(sourceFilePath, FileMode.Open)) { byte[] bytes = new byte[fs.Length]; fs.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的开始 fs.Seek(0, SeekOrigin.Begin); fs.Clo...
阅读全文
posted @ 2013-04-12 20:59
无觉-李敏
阅读(323)
推荐(0)