//clearing the variable that store the instantiated ConnectToNet class private void clearConnectToNet() { _connection = null; }
//checking and setting the url input private void urlBox_TextChanged(object sender, EventArgs e) { _connection = new ConnectToNet(); _connection.SetUrl(urlBox.Text); }