Esempio n. 1
0
 private Progress(FormProgressBar form)
 {
     Form              = form.SubBar;
     Form.CancelClick += Form_CancelClick;
     Form.Show();
 }
Esempio n. 2
0
 /// <summary>
 /// Инициализация прогрессбара
 /// </summary>
 /// <param name="title">Заголовок (описание общей задачи)</param>
 /// <param name="count">Количество итераций</param>
 /// <param name="start">Начальная позиция</param>
 /// <param name="step">Шаг итерации</param>
 public Progress(string title, int count, int start = 0, int step = 1)
 {
     Form              = new FormProgressBar(title, count, start, step);
     Form.CancelClick += Form_CancelClick;
     Form.Show();
 }