I'm working on a windows form to calculate UPC for item numbers. I successfully create one that will handle one itemnumberitem number/UPC at a time, now I want to expand and do it for multiple itemnumbersitem numbers/UPCs. I have started and tried using a list, but I keep getting stuck. I created a helper class:
Then I got started on my code, but the issue is that the process is incrementallyincremental, meaning I get the itemnumberitem number from a gridview via checkboxes and put them in the list. Then I get the last UPC from the database, strip the checkdigit, then increment the number by one and put it in the list. Then I calculate the checkdigit for the new number and put that in the list. And here I already get an Out of Memory Exception.
Here is the code I have so far:
Is this the right way to go about it, using a list, or should I be looking at a different way?
Any
Any suggestions and guidance is greatly appreciated.