public void AddFavorite(Server server) { if (UpdateFavorite(server) != null) { return; } Favorites.AddLocked(new FavoriteServer(server)); SaveSettings(); }