Esempio n. 1
0
        private void ThreadCallback(IAsyncResult result)
        {
            GenericCrossThreadDelegate del = (GenericCrossThreadDelegate)result.AsyncState;

            del.EndInvoke(result);
            this.CloseMe();
        }
Esempio n. 2
0
 public frmProgress(string WindowCaption, int ProgressMax, GenericCrossThreadDelegate ExternalMethodDelegate)
     : this()
 {
     this.Text = WindowCaption;
     this.progressBar1.Maximum = ProgressMax;
     this.delegateExProc       = ExternalMethodDelegate;
 }
Esempio n. 3
0
            //***************************************************************************
            // Public Methods
            //
            #endregion

            #region Private Methods
            //***************************************************************************
            // Private Methods
            //
            private void StartThread()
            {
                this._running = true;
                this._mre.Reset();
                RainstormStudios.GenericCrossThreadDelegate del = new GenericCrossThreadDelegate(this.ThreadWorker);
                del.BeginInvoke(new AsyncCallback(this.ThreadWorkerCallback), del);
            }
Esempio n. 4
0
 private void CloseMe()
 {
     if (this.InvokeRequired)
     {
         GenericCrossThreadDelegate del = new GenericCrossThreadDelegate(this.CloseMe);
         this.Invoke(del);
     }
     else
     {
         this.Close();
     }
 }
Esempio n. 5
0
 private void CloseMe()
 {
     if (this.InvokeRequired)
     {
         GenericCrossThreadDelegate del = new GenericCrossThreadDelegate(this.CloseMe);
         this.Invoke(del);
     }
     else
         this.Close();
 }
Esempio n. 6
0
 public frmProgress(string WindowCaption, int ProgressMax, GenericCrossThreadDelegate ExternalMethodDelegate)
     : this()
 {
     this.Text = WindowCaption;
     this.progressBar1.Maximum = ProgressMax;
     this.delegateExProc = ExternalMethodDelegate;
 }
Esempio n. 7
0
            //***************************************************************************
            // Public Methods
            // 
            #endregion

            #region Private Methods
            //***************************************************************************
            // Private Methods
            // 
            private void StartThread()
            {
                this._running = true;
                this._mre.Reset();
                RainstormStudios.GenericCrossThreadDelegate del = new GenericCrossThreadDelegate(this.ThreadWorker);
                del.BeginInvoke(new AsyncCallback(this.ThreadWorkerCallback), del);
            }