public void WebSiteInfo() { switch (Inputted) { case "www.stockexchange.com": stockexchange.RenderSite(); sm.Connect(); clic.storedConnection = "www.stockexchange.com"; connected = true; MainPage = true; break; case "www.stockexchange.com/properexchange": st.RenderSite(); sm.Connect(); clic.storedConnection = "www.stockexchange.com/properexchange"; connected = true; MainPage = false; break; case "www.stockexchange.com/memeexchange": gstocks.RenderSite(); sm.Connect(); clic.storedConnection = "www.stockexchange.com/memeexchange"; connected = true; MainPage = false; break; case "www.stockexchange.com/history": history.RenderSite(); sm.Connect(); clic.storedConnection = "www.stockexchange.com/history"; connected = true; MainPage = false; break; case "www.stockexchange.com/portfolio": port.RenderSite(); sm.Connect(); clic.storedConnection = "www.stockexchange.com/portfolio"; connected = true; MainPage = false; break; } }