EditServer() публичный Метод

public EditServer ( int index, ServerSaveData server ) : void
index int
server ServerSaveData
Результат void
Пример #1
0
 /// <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();
 }