|
-
Nov 29th, 2010, 08:14 PM
#1
Best way to setup Class?
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:
Private p1 As New Process Private p2 As New Process 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?
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|