Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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 = "输入信息有误";
     }
 }
Ejemplo n.º 3
0
 public void eliminate()
 {
     _item      = null;
     memorandum = new cmemorandum();
     reminder   = "清除";
 }