private static string ConvertImageUris(string html, int index, ProviderMode mode) { if (mode == ProviderMode.LocalMode || mode == ProviderMode.EditMode) { return(html.Replace("#$", TestingHttpServer.GetUrl("images")).Replace("#%", ".")); } else { return(html.Replace("#$", "/ImageHandler.aspx?id=").Replace("#%", ".")); } }
private void btnNext_Click(object sender, EventArgs e) { if (SystemStateManager.TestState()) { return; } TestingHttpServer.AllowConnections = true; if (_provider.State == ProviderState.PreTesting) { webBrowser.Navigate(TestingHttpServer.GetUrl("start")); } else if (_provider.State == ProviderState.Testing) { webBrowser.Navigate(TestingHttpServer.BaseUrl); } else if (_provider.State == ProviderState.Results) { if (this.Parent is Form) { (this.Parent as Form).Close(); } } }