void initrunningState() { RunningStateBData rds = new RunningStateBData() { }; RunningStateBData[] rd = new RunningStateBData[] { new RunningStateBData() {Name = "运 行" }, new RunningStateBData() {Name = "报 警" }, new RunningStateBData() {Name = "通道异常" }, new RunningStateBData() {Name = "位置报警" }, new RunningStateBData() {Name = "交流断线" }, new RunningStateBData() {Name = "母差动作" }, new RunningStateBData() {Name = "失灵动作" }, new RunningStateBData() {Name = "其它动作" }, new RunningStateBData() {Name = "" }, new RunningStateBData() {Name = "" }, }; foreach (RunningStateBData rs in rd) { rds.Add(rs); } RunningState_Controller.State = rds; }
void initrunningState() { RunningStateBData rds = new RunningStateBData() { }; RunningStateBData[] rd = new RunningStateBData[] { new RunningStateBData() {Name = "运 行" }, new RunningStateBData() {Name = "报 警" }, new RunningStateBData() {Name = "跳 闸" }, new RunningStateBData() {Name = "失灵启动A" }, new RunningStateBData() {Name = "失灵启动B" }, new RunningStateBData() {Name = "失灵启动C" }, new RunningStateBData() {Name = "跳 位" }, new RunningStateBData() {Name = "合 位" }, new RunningStateBData() {Name = "" }, new RunningStateBData() {Name = "" }, }; foreach (RunningStateBData rs in rd) { rds.Add(rs); } RunningState_Controller.State = rds; }