public CentralDispatchFixture() { InitLogging(); var dispatch = new CentralDispatch(); kernel = dispatch.BuildContainer(); WebTimer.Stop(); }
private void WebTimer_Tick(object sender, EventArgs e) { try { Browser.Url = DefaultUrl; WebTimer.Stop(); Browser.Focus(); } catch { //不做任何變更 } }
private void Browser_Navigating(object sender, WebBrowserNavigatingEventArgs e) { try { WebTimer.Stop(); if (Browser.Url == DefaultUrl) { WebTimer.Start(); } } catch { } }
public void StopWebTimer() { WebTimer.Stop(); }