예제 #1
0
        /// <summary>
        /// Функция потока
        /// </summary>
        /// <param name="sender"></param>
        private void Execute(object sender)
        {
            InteratorEventArgs e;

            for (int i = 0; i < this._count; i++)
            {
                e = new InteratorEventArgs(i);
                this._iterationCallback(e);
                if (e.Cancel)
                {
                    break;
                }
                this.IncProressBar();
            }
            this.DialogResult = DialogResult.OK;
        }
예제 #2
0
 /// <summary>
 /// Функция потока
 /// </summary>
 /// <param name="sender"></param>
 private void Execute(object sender)
 {
     InteratorEventArgs e;
     for (int i = 0; i < this._count; i++) {
         e = new InteratorEventArgs (i);
         this._iterationCallback (e);
         if (e.Cancel)
             break;
         this.IncProressBar ();
     }
     this.DialogResult = DialogResult.OK;
 }