Example #1
0
		private void property_PropertyValueChanged(object s, PropertyValueChangedEventArgs e) {
			Xml2 xml = new Xml2(xmlFile);
			var info = config.OPList[listBox.SelectedIndex];
			xml.SetAttr("root//Table[@Name='" + info.Table + "']", "Entity|Insert|Update|Delete|IsExistByID|SelectByID|SelectPageList|SelectListByFK|SelectListByAll|UpdateAndInsert", "{8}|{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{9}".FormatWith(
				info.Insert.ToString().ToLower(), info.Update.ToString().ToLower(), info.DeleteByID.ToString().ToLower(),
				info.IsExistByID.ToString().ToLower(), info.SelectByID.ToString().ToLower(), info.SelectPageList.ToString().ToLower(),
				info.SelectListByFK.ToString().ToLower(), info.SelectListByAll.ToString().ToLower(), info.Entity.ToString().ToLower(),
				info.UpdateAndInsert.ToString().ToLower()
			));
			xml.Save();
			xml.Close();
		}