/// <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; }
/// <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; }