public static string BuildPlayString(Server server) { Asserter.AssertIsNotNull(server, "server"); StringBuilder sb = new StringBuilder(); sb.AppendFormat("{0}={1}&", Id, server.Id); sb.AppendFormat("{0}={1}&", NameTolken, server.Name); sb.AppendFormat("{0}={1}&", HostTolken, server.HostAddress); sb.AppendFormat("{0}={1}&", PortTolken, server.Port); sb.AppendFormat("{0}={1}&", RemoveEncTolken, server.RemoveEncryption); sb.AppendFormat("{0}={1}", AllowRazorTolken, server.AllowRazor); return sb.ToString(); }
private ServerListItem CreateServerListItem(Server server) { ServerListItem item = new ServerListItem(this, server); AddServerItemButtons(item); return item; }
public ServerListItem(ServerListControl parent, Server server) { _parent = parent; _server = server; _buttons = new List<ServerListItemButton>(); }