public static void AddServer(BugzillaServer server) { int i = 1; foreach (var si in serverIndex) { if (si.Id >= i) { i = si.Id + 1; } } server.Id = i; servers.Add(server); serverIndex.Add(new ServerInfo() { Name = server.Name, Id = server.Id }); server.Save(); SaveIndex(); }
void SetOrder(int order, List <BugInfo> list) { server.SetOrder(order, list); Fill(); server.Save(); }