- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
private void SetProgressIndicator(int step) {
switch (step) {
case 1:
liStepOne.Attributes["class"] = "current";
liStepTwo.Attributes["class"] = "";
liStepThree.Attributes["class"] = "";
liStepFour.Attributes["class"] = "";
liStepFive.Attributes["class"] = "";
break;
case 2:
liStepTwo.Attributes["class"] = "current";
liStepOne.Attributes["class"] = "complete";
liStepThree.Attributes["class"] = "";
liStepFour.Attributes["class"] = "";
liStepFive.Attributes["class"] = "";
break;
case 3:
liStepThree.Attributes["class"] = "current";
liStepOne.Attributes["class"] = "complete";
liStepTwo.Attributes["class"] = "complete";
liStepFour.Attributes["class"] = "";
liStepFive.Attributes["class"] = "";
break;
case 4:
liStepFour.Attributes["class"] = "current";
liStepOne.Attributes["class"] = "complete";
liStepTwo.Attributes["class"] = "complete";
liStepThree.Attributes["class"] = "complete";
liStepFive.Attributes["class"] = "";
break;
case 5:
liStepFive.Attributes["class"] = "current";
liStepOne.Attributes["class"] = "complete";
liStepTwo.Attributes["class"] = "complete";
liStepThree.Attributes["class"] = "complete";
liStepFour.Attributes["class"] = "complete";
break;
}
}
Qwertiy 01.10.2014 11:13 # 0
roman-kashitsyn 01.10.2014 11:17 # 0
Qwertiy 01.10.2014 11:23 # 0
Впрочем да, массив можно создать и из уже имеющихся переменных :)
kegdan 01.10.2014 12:24 # 0
Qwertiy 01.10.2014 21:16 # 0
cyperh 01.10.2014 13:48 # +1
Qwertiy 01.10.2014 21:18 # 0
Lokich 01.10.2014 15:46 # 0
guest 31.10.2014 17:13 # 0