private void OtherInit(DataRow dt) { CRLOPCItem co = new CRLOPCItem(); co.groupname = dt["groupname"].ToString(); co.ipaddress = dt["userid"].ToString(); co.DBAddress = int.Parse(dt["objects"].ToString()); co.start = int.Parse(dt["value"].ToString()); co.length = int.Parse(dt["stationno"].ToString()); ItemInfo.Add(co); }