/// <summary> /// When the save button is clicked /// </summary> private void SaveBtn_Click(object sender, TomShane.Neoforce.Controls.EventArgs e) { if (Edit) { ServerList.EditServer(Index, new ServerSaveData(NameTxt.Text, IP, port)); } else { ServerList.AddServer(new ServerSaveData(NameTxt.Text, IP, port)); } Close(); }