Пример #1
0
        public bool SayHelloCallback(int handle, string arg)
        {
            if (ABC4TrustEvent != null)
            {
                SayHelloWorker fic = new SayHelloWorker(ABC4TrustEvent, handle, arg);

                Thread detectThread = new Thread(new ThreadStart(fic.doit));
                detectThread.Start();
                return(true);
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("No EventHandler / Event for callback !!");
                return(false);
            }
        }
        public bool SayHelloCallback(int handle, string arg)
        {
            if (ABC4TrustEvent != null)
            {
                SayHelloWorker fic = new SayHelloWorker(ABC4TrustEvent, handle, arg);

                Thread detectThread = new Thread(new ThreadStart(fic.doit));
                detectThread.Start();
                return true;
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("No EventHandler / Event for callback !!");
                return false;
            }
        }