private bool memorandum_equals(cmemorandum a) { return(access(memorandum.MTIME, a.MTIME) && access(memorandum.PLACE, a.PLACE) && access(memorandum.incident, a.incident) && access(memorandum.CONTACTSID, a.CONTACTSID)); }
public void add() { if (memorandum.accord) { foreach (var temp in lmemorandum) { if (memorandum_equals(temp)) { warn = "输入重复"; return; } } reminder = "添加日记"; _model.send(ecommand.addmemorandum, memorandum.ToString()); memorandum = new cmemorandum(); } else { warn = "输入信息有误"; } }
public void eliminate() { _item = null; memorandum = new cmemorandum(); reminder = "清除"; }