/// <summary> /// 获取初始命令 /// </summary> private void GetCmdFormDb(String EcuVersion) { DataSet dataSet = MyMeans.GetEcuTrip(EcuVersion); foreach (DataRow row in dataSet.Tables["Table1_1"].Rows) { General1cmd = (String)row[1]; General2cmd = (String)row[2]; General3cmd = (String)row[3]; General4cmd = (String)row[4]; General5cmd = (String)row[5]; MaxAndMincmd = (String)row[6]; Timercmd = (String)row[7]; Countercmd = (String)row[8]; _1Ddata1 = (String)row[9]; _1Ddata2 = (String)row[10]; _2Ddata1 = (String)row[11]; _2Ddata2 = (String)row[12]; _2Ddata3 = (String)row[13]; } }