上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: From http://www.cnblogs.com/luhe/archive/2012/11/14/2769263.htmlJQuery Offset实验与应用 我们有时候需要实现这样一种功能:点击一个按钮,然后在按钮的下方显示一个div。当按钮位于角落时,div的位置设定就需要计算,使div完全显示。 我打算使用offset()方法实现此功能,但要先弄清楚他的功能。实验: offset()的top是指元素与document的上边的距离,而不是浏览器当前窗体的上边缘,如图1。 图1:document高度超过window,window出现滚动条,拖动滚动条,提交按钮的offset()... 阅读全文
posted @ 2013-08-26 15:46 webglcn 阅读(563) 评论(0) 推荐(0) 编辑
摘要: http://windowsasusual.blogspot.jp/2013/01/how-to-launch-windows-phone-8-emulator.htmlHardware requirementsFirst possible pitfall is... your CPU! In short, you passed this step if you have Intel i3/i5/i7 processor as they all do Second Level Address Translation (SLAT) capability. Otrherwise, you shou 阅读全文
posted @ 2013-08-23 13:34 webglcn 阅读(2109) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0"?><configuration> <configSections> <section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/> <section name="log4net" type="log4net.Config.Log4NetConfigurat 阅读全文
posted @ 2012-11-28 18:39 webglcn 阅读(256) 评论(0) 推荐(0) 编辑
摘要: // form designerthis.Load += Form1_Load;// Form1.csprivate void Form1_Load(object sender, EventArgs e){ MessageBox.Show("a");}--------------------------------------------------------if override OnLoad abstract method which is defined in Form class, call base.OnLoad(e) is required, otherwis 阅读全文
posted @ 2012-11-06 11:13 webglcn 阅读(990) 评论(0) 推荐(0) 编辑
摘要: progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Marquee;BackgroundWorker bgwbgw.WorkerSupportsCancellation = true;bgw.DoWork += new DoWorkEventHandler(bgw_DoWork);protected void bgw_DoWork(object sender, DoWorkEventArgs e){ BackgroundWorker worker = sender as BackgroundWorker; while (... 阅读全文
posted @ 2012-11-05 16:23 webglcn 阅读(914) 评论(0) 推荐(0) 编辑
摘要: Refer to http://stackoverflow.com/questions/7936438/errorprovider-using-classpublic partial class Form1 : Form { public Form1() { InitializeComponent(); } private readonly ErrorProvider errorProvider1 = new ErrorProvider(); private void textBox1_TextC... 阅读全文
posted @ 2012-10-26 15:14 webglcn 阅读(173) 评论(0) 推荐(0) 编辑
摘要: I like to keep views decoupled or unaware of the presenters, hence Views communicate to the presenter by raising events. This eliminates the need for the view to have a reference to the presenter. Keep Views thin and dumb.The presenter on the other hand has a member reference to the view (and the mo 阅读全文
posted @ 2012-10-23 14:03 webglcn 阅读(190) 评论(0) 推荐(1) 编辑
摘要: For Msimsiexec /i <PathToInstaller>\<installer_name>.msi /lvx* <PathToLogFile>\<logfile_name>.txtFor Exe<PathToInstaller>\<installer_name>.exe /lvx* <PathToLogFile>\<logfile_name>.txt 阅读全文
posted @ 2012-10-19 13:36 webglcn 阅读(132) 评论(0) 推荐(0) 编辑
摘要: namespace ObserverPattern{ public interface ISubject { event EventHandler NotifyHandler; } public class CstEventArg : EventArgs { public string Name { get; set; } } public class News : ISubject { public event EventHandler NotifyHandler; public voi... 阅读全文
posted @ 2012-10-18 14:06 webglcn 阅读(499) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/wyixin/archive/2011/12/11/2284313.html首先实现两个接口:Subject(用于发布信息) Observer(信息接受者)Subject中:registerObserver(Observer observer); 用于登记需要推送的用户removeObserver(Observer observer); 将用户剔除出推送列表notifyObserver(); 推送服务Observer中:update(string news); 当Subject信息发送时,用于更新然后用 Newssta... 阅读全文
posted @ 2012-10-18 11:18 webglcn 阅读(348) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页