摘要:
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()... 阅读全文
摘要:
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 阅读全文
摘要:
<?xml version="1.0"?><configuration> <configSections> <section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/> <section name="log4net" type="log4net.Config.Log4NetConfigurat 阅读全文
摘要:
// 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 阅读全文
摘要:
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 (... 阅读全文
摘要:
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... 阅读全文
摘要:
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 阅读全文
摘要:
For Msimsiexec /i <PathToInstaller>\<installer_name>.msi /lvx* <PathToLogFile>\<logfile_name>.txtFor Exe<PathToInstaller>\<installer_name>.exe /lvx* <PathToLogFile>\<logfile_name>.txt 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文