- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
public void SelectStep(int stepNumber)
{
//1.HTTPCore
//2.find cat
//3find p.cat
//4.find products
//5.parse products info
//6.save
//7.complete
if (stepNumber != 1) ((Label)(this.panel.Controls.Cast<Control>()
.First(c => c.TabIndex == stepNumber - 1))).ForeColor = Color.Black;
((Label)(this.panel.Controls.Cast<Control>()
.First(c => c.TabIndex == stepNumber))).ForeColor = Color.Red;
if (stepNumber == 6)
{
labelStatusSecondLine.ForeColor = Color.Black;
labelStatusFirstLine.Text = "Готово."; buttonStart.Enabled = buttonRefreshCats.Enabled = true; timer.Stop();
}
if (stepNumber == 7)
{
labelStatusSecondLine.Text = "Обновление категорий...";
}
}