private void NewServer_Click(object sender, EventArgs e) { _otherGuiOpen = true; Hide(); var f = new AddServer(); f.ShowDialog(); Show(); _otherGuiOpen = false; LoadServers(); }
private void CloneServer_Click(object sender, EventArgs e) { var server = Loading.Servers.RegisteredServers.Find(k => k.Name == _selectedServer); if (server == null) { return; } _otherGuiOpen = true; Hide(); var f = new AddServer(server.Folder); f.ShowDialog(); GameConfiguration.Clone(server.Name, f.ServerName.Text); Show(); _otherGuiOpen = false; LoadServers(); }