private void ServerListView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ServerListView.SelectedItems.Count > 0)
            {
                ListViewItem item = ServerListView.SelectedItems[0];
                if (item != null)
                {
                    int id;
                    int.TryParse(item.SubItems[1].Text, out id);
                    Console.WriteLine("Clicked on server with id: " + id);

                    Server server = Server.GetServer(id);
                    if (server == null || server.ControlPanel != null)
                    {
                        return;
                    }

                    ServerCP cp = new ServerCP(server);
                    cp.Show();
                }
            }

            ServerListView.SelectedItems.Clear();
        }
 public void DelegateMethod(ServerCP controlPanel, string output)
 {
     controlPanel.TextBoxConsoleOutput.AppendText(output + Environment.NewLine);
 }