Lee

Lee

  • NA
  • 7
  • 0

Calling a main loop object from a class method

Jun 10 2008 11:28 PM
Hey all, hopefully someone here can help. I have an object (a queue) that's created in the top of the main form class definition. I'm also creating several objects of a class. I need those class objects to submit to the queue. Unfortunately because of other considerations I'm going to have a hard time moving either the queue or the queue submission process. What's the syntax for submitting object from the class? Here's the pseudo code:

namespace Test1
{
    public partial class Form1 : Form
    {
        public Handler Qlist = new Handler();
        List<ClassObject> Boxes = new List<ClassObject>();

       //main form methods, etc.

    }

    public class ClassObject
    {
       //variables, properties, etc

       public void SendQueue()
       {
             //HERE is where I need to send to the items to Qlist
             //How do I do that?
       }
    }
}
         

Answers (3)