Example #1
0
 public override void addBook(Book toAdd)
 {
     if (toAdd.isInFilter(Filter))
     {
         bookView.Items.Add(toAdd.produceTagedListViewItem());
     }
 }
 public override void addBook(Book toAdd)
 {
     if (toAdd.isInFilter(Filter))
     {
         bookView.Nodes.Add(toAdd.produceTagedTreeNode());
     }
 }
Example #3
0
 public override void updateBook(Book toUpdate)
 {
     foreach (ListViewItem it in bookView.Items)
     {
         if (it.Tag == toUpdate)
         {
             if (!toUpdate.isInFilter(Filter))
             {
                 removeBook(toUpdate);
                 return;
             }
             toUpdate.updateTagedListViewItem(it);
             return;
         }
     }
     if (toUpdate.isInFilter(Filter))
     {
         addBook(toUpdate);
     }
 }
 public override void updateBook(Book toUpdate)
 {
     foreach (TreeNode it in bookView.Nodes)
     {
         if (it.Tag == toUpdate)
         {
             if (!toUpdate.isInFilter(Filter))
             {
                 removeBook(toUpdate);
                 return;
             }
             toUpdate.updateTagedTreeNode(it);
             return;
         }
     }
     if (toUpdate.isInFilter(Filter))
     {
         addBook(toUpdate);
     }
 }
 public override void updateBook(Book toUpdate)
 {
     foreach (TreeNode it in bookView.Nodes)
         if (it.Tag == toUpdate)
         {
             if (!toUpdate.isInFilter(Filter))
             {
                 removeBook(toUpdate);
                 return;
             }
             toUpdate.updateTagedTreeNode(it);
             return;
         }
     if(toUpdate.isInFilter(Filter))
         addBook(toUpdate);
 }
 public override void updateBook(Book toUpdate)
 {
     foreach (ListViewItem it in bookView.Items)
         if (it.Tag == toUpdate)
         {
             if (!toUpdate.isInFilter(Filter))
             {
                 removeBook(toUpdate);
                 return;
             }
             toUpdate.updateTagedListViewItem(it);
             return;
         }
     if (toUpdate.isInFilter(Filter))
         addBook(toUpdate);
 }
 public override void addBook(Book toAdd)
 {
     if (toAdd.isInFilter(Filter))
         bookView.Nodes.Add(toAdd.produceTagedTreeNode());
 }
 public override void addBook(Book toAdd)
 {
     if (toAdd.isInFilter(Filter))
         bookView.Items.Add(toAdd.produceTagedListViewItem());
 }