public bool Remove(string order) { if (FileUtils.Exist(PathUtils.RechargeOrderPath) == false) { return(false); } SecurityElement se = MonoXmlUtils.LoadXmlSE(PathUtils.RechargeOrderPath); if (MonoXmlUtils.RemoveByValue(se, order)) { MonoXmlUtils.SaveXml(PathUtils.RechargeOrderPath, se); return(true); } else { return(false); } }
public bool Remove(string account) { if (FileUtils.Exist(PathUtils.AccountInfo) == false) { return(false); } SecurityElement se = MonoXmlUtils.LoadXmlSE(PathUtils.AccountInfo); if (MonoXmlUtils.RemoveByValue(se, account)) { MonoXmlUtils.SaveXml(PathUtils.AccountInfo, se); return(true); } else { return(false); } }