public string Description
public Note(string title, string description, string type, int priority, int id)
Description = description;
public void AddFirst(Node node)
public void AddLast(Node node)
public void AddNodeAfter(Node node1, Node node2)
public void AddNodeBefore(Node node1, Node node2)
AddNodeAfter(node1, node2);
public void RemoveFirst()
while (node.Next != tail)
public void RemoveAfter(Node node)
if (IsEmpty() || node == tail)
Node nextNode = node.Next;
node.Next = nextNode.Next;
public void RemoveBefore(Node node)
if (IsEmpty() || head == node)
while (p.Next.Next != node)
private void RemoveNode(Node node)
else if (head == tail && head == node)
public Node SearchNode(Note note)
if (Equals(resnode.Info, note))
public bool Equals(Note note1, Note note2)
if ((note2.ID != -1 && note2.ID != note1.ID) || (note2.Title != "" && note2.Title != note1.Title) || (note2.Description != "" && note2.Description != note1.Description) || (note2.Type != "" && note2.Type != note1.Type) || (note2.Priority != -1 && note2.Priority != note1.Priority))
public void SelectionSort()
Node fakeHead = new Node();
while (head.Next != null)
while (node.Next != null)
Node temp = beforemin.Next;
beforemin.Next = beforemin.Next.Next;
if (p.Info.Priority < pivot.Info.Priority)
Node previous = null, current, next = null;
if (p.Info.Type != head.Info.Type)