現(xiàn)在很多的javascript控件,非常的不錯,其中step就是一個,如下圖所示:
那么如何用C#來實現(xiàn)一個step控件呢?
先定義一個StepEntity類來存儲步驟條節(jié)點的信息:
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