public override void Delete(Note note, NotesModel Current) { if (!note.IsImportant) { Current.Remove(note); } else if (successor != null) { successor.Delete(note, Current); } }
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); } }
public abstract void Delete(Note note, NotesModel Current);