I have a Class that will automate processes based on a set of variables. I have a finite number of boolean variables. If True, the process will run, if False, it won't.

If a variable is True, I'll add it's corresponding process to a Queue of processes.

What I'd like to know, is how should I setup the processes? Should it be in the new class or form class? Should it be at class level or not?

I was thinking I could just setup each process at Class level:
VB.NET Code:
  1. Private p1 As New Process
  2. Private p2 As New Process
  3. Private p3 As New Process

Then, before the process is added to the Queue, I'll assign the appropriate properties.

Is there a better way? Or will this work just fine?