Question: I'm fairly new to Photoshop (Still CS4) and I often get designs for websites where slicing them up takes a fairly decent amount of time.
Some sites have layers that are all going to be the same exact size, and they are stacked on top of each other (Slideshows, that type of thing).

I usually move these layers to a new document with the size I need, display one at a time, and "Save for web" as 24-bit transparent (non-interlaced) PNGs.
Sometimes its only 5 images, other times its 10 times that. I don't mind getting paid to do this, but after a while it gets incredibly boring and I would like to automate it.

I have some basic JS experience with Adobe specific APIs from Illustrator, but no experience with Photoshop.

Answer: 
The preferred way to do this, is to specify the string comparison by using something like

```
string.Equals(x.Username, (string)drUser["Username"], StringComparison.OrdinalIgnoreCase

```

to do the equality check, instead of "=="
Have you tried this?

```
string userName = (string)drUser["Username"];
bool enrolled = enrolledUsers.Exists(x =>
  string.Equals(x.Name, userName, StringComparison.CurrentCultureIgnoreCase));

```

Is there a reason you are using FindIndex instead?