public void addAndSelectServer(Server curr)
 {
     selectedServerFromList = true;
     settings.addServer(curr.name, curr.ip.ToString() + ":" + curr.port.ToString());
     serverBox.Text = curr.name + "," + curr.ip.ToString() + ":" + curr.port.ToString();
     serverList = null;
 }
 private void serverListButton_Click(object sender, RoutedEventArgs e)
 {
     serverList = new ServerListView();
     serverList.chooseServer += addAndSelectServer;
     serverList.begin();
 }