Subscribe

few fixes

  1. 2009-10-10 13:46:36 PDT
    in LibraryDal.cs:IsFileInPathTable(string FullPath)<br> ...<br> following 2 lines:<br> cmd.CommandText = "SELECT * from paths where file='@FILEPATH'";<br> cmd.Parameters.Add(new SQLiteParameter(@"FILEPATH", FullPath)); Should be: <br> cmd.CommandText = "SELECT * from paths where file=@FILEPATH";<br> cmd.Parameters.Add(new SQLiteParameter("@FILEPATH", FullPath)); <br><br> In frmMain.cs/ShowAddBookForm(string AddThisFile)<br> ...<br> if (rc == DialogResult.OK)<br> {<br> //TODO: add the book to the db<br> if (myBooksDb.IsBookExists(oFrm.BookInfo.ISBN))<br> myBooksDb.UpdateExitingBook(oFrm.BookInfo);<br> else<br> myBooksDb.InsertNewBook(oFrm.BookInfo);<br> }<br> else if (rc == DialogResult.Ignore)<br> {<br> //TODO: add file to ignore list<br> DbPath path = new DbPath();<br> path.File = AddThisFile;<br> myBooksDb.AddToIgnorePaths(path);<br> }<br> <br> These changes let us add/ignore new files, and recognize the registered ones.<br> -s.
  2. 2009-10-10 13:54:13 PDT
    Sorry for the prior post. Here is the fixed one: LibraryDal.cs:IsFileInPathTable(string FullPath) ... following 2 lines: cmd.CommandText = "SELECT * from paths where file='@FILEPATH'"; cmd.Parameters.Add(new SQLiteParameter(@"FILEPATH", FullPath)); Should be: cmd.CommandText = "SELECT * from paths where file=@FILEPATH"; cmd.Parameters.Add(new SQLiteParameter("@FILEPATH", FullPath)); In frmMain.cs/ShowAddBookForm(string AddThisFile) ... if (rc == DialogResult.OK) { //TODO: add the book to the db if (myBooksDb.IsBookExists(oFrm.BookInfo.ISBN)) myBooksDb.UpdateExitingBook(oFrm.BookInfo); else myBooksDb.InsertNewBook(oFrm.BookInfo); } else if (rc == DialogResult.Ignore) { //TODO: add file to ignore list DbPath path = new DbPath(); path.File = AddThisFile; myBooksDb.AddToIgnorePaths(path); } These changes let us add/ignore new files, and recognize the registered ones. -s.
  3. 2009-10-10 14:02:16 PDT
    Many thanks, i added the fixes If you like, you can submit "SVN patches" via our patches tracker.
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.