public void LoadServers(ref List<ServerData> servers)
 {
     this.servers = servers;
     foreach (ServerData data in servers)
     {
         var server = new ServerListViewItem(data);
         server.ServerUpdated += new EventHandler(ServerList_ServerUpdated);
         ServerList.Items.Add(server);
     }
 }
 private void NewServer(object sender, EventArgs e)
 {
     EditForm.PrepareNew();
     if (EditForm.ShowDialog(this) != DialogResult.OK)
         return;
     EditForm.CreateNew(++Program.LastServerID);
     var data = EditForm.CurrentServer;
     servers.Add(data);
     var server = new ServerListViewItem(data);
     server.ServerUpdated += new EventHandler(ServerList_ServerUpdated);
     ServerList.Items.Add(server);
     Program.SaveData();
 }