void RefreshSelectButton() { m_SelectMenuItem.Enabled = m_SelectButton.Enabled = false; if (ServiceAddress == String.Empty) { return; } if (!ServiceAddress.EndsWith("asmx?wsdl") && !ServiceAddress.EndsWith("asmx")) { return; } string content = m_WebBrowser.DocumentText; if (!ContainsInterface(content, typeof(IApplicationManager))) { return; } if (!ContainsInterface(content, typeof(IMembershipManager))) { return; } if (!ContainsInterface(content, typeof(IPasswordManager))) { return; } if (!ContainsInterface(content, typeof(IRoleManager))) { return; } if (!ContainsInterface(content, typeof(IUserManager))) { return; } m_SelectMenuItem.Enabled = m_SelectButton.Enabled = true; }