現(xiàn)在很多的javascript控件,非常的不錯(cuò),其中step就是一個(gè),如下圖所示:
那么如何用C#來實(shí)現(xiàn)一個(gè)step控件呢?
先定義一個(gè)StepEntity類來存儲(chǔ)步驟條節(jié)點(diǎn)的信息:
1 public class StepEntity 2 { 3 public string Id { get; set; } 4 public string StepName { get; set; } 5 public int StepOrder { get; set; } 6 public eumStepState StepState { get; set; } 7 public string StepDesc { get; set; } 8 public object StepTag { get; set; } 9 //public Image StepCompletedImage { get; set; }10 //public Image StepDoingImage { get; set; }11 public StepEntity(string id,string stepname,int steporder,stri