示例#1
0
        public void PrepareDisplay()
        {
            mAagPrep = new Aag_PrepDisplay();
            SetOperation setOp1 = new SetOperation();

            setOp1.FireEvent(mAagPrep);                         // calls Thread 1 method that will fire the event
        }
示例#2
0
        static void Main()
        {
            Aag_PrepDisplay aag_Prep1 = new Aag_PrepDisplay();

            Thread AagPrepDisplayThread = new Thread(new ThreadStart(aag_Prep1.PrepareDisplay));

            AagPrepDisplayThread.Start();

            while (!AagPrepDisplayThread.IsAlive)
            {
                ;
            }
            Thread.Sleep(1000);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new SetOperation());
        }
示例#3
0
 public void FireEvent(Aag_PrepDisplay aagPrep)
 {
     OnChDet(mName);
 }