<?xml version="1.0" encoding="utf-8" ?> <CheckList> <chkList> <list checkList="Update items in https://mylinks"> </list> <list checkList="xxxxxx"></list> <list checkList="xxxxxx"> </list> </chkList> </CheckList>
public checkList chkListConfig() { //Parse List.xml XmlSerializer deserializer = new XmlSerializer(typeof(checkList)); TextReader reader = new StreamReader(Directory.GetCurrentDirectory() + @"\list.xml"); checkList config = (checkList)deserializer.Deserialize(reader); reader.Close(); return config; } public DataTable checkListData() { DataTable data = new DataTable(); data.Columns.Add("ChkList", typeof(string)); data.Columns.Add("Click", typeof(bool)); checkList chkList = chkListConfig(); foreach(var c in chkList.chk.List) { data.Rows.Add(c.cfg, false); } return data; }
dgv_CellContentClick
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)