コード例 #1
0
 public override void Delete(Note note, NotesModel Current)
 {
     if (!note.IsImportant)
     {
         Current.Remove(note);
     }
     else if (successor != null)
     {
         successor.Delete(note, Current);
     }
 }
コード例 #2
0
 public override void Delete(Note note, NotesModel Current)
 {
     if (note.IsImportant)
     {
         Console.WriteLine("NOTE WITH TOPIC '{0}' IS IMPORTANT, I CAN'T DELETE IT", note.Topic);
     }
     else if (successor != null)
     {
         successor.Delete(note, Current);
     }
 }
コード例 #3
0
 public abstract void Delete(Note note, NotesModel Current);