public Network(string ipAdress, int port) { this.ipAdress = ipAdress; this.port = port; this.status = "Trying to establish server connection"; network = new NetworkConnect(this); Thread connectionThread = new Thread(new ThreadStart(TryConnecting)); connectionThread.IsBackground = true; connectionThread.Start(); }