public FRM_ConvertirGuide(Livres chemin) { ch = chemin; InitializeComponent(); GB_meta.Visible = true; SelectionLivre(ch.full_chemin_livre); }
public FRM_EditerMetadonnees(ConnectSQLite _db, Livres _livre) { Database = _db; livre = _livre; InitializeComponent(); LivreAndFileMod(livre.full_chemin_livre); ExtractionMetadataSql(livre.id_livre); }
/// <summary> /// Recharge la liste de tous les livres /// </summary> private void GetAllBooks() { SQLiteDataReader sQ = Database.Extraction("SELECT * FROM Livre"); Livres tmp; Books.Clear(); while (sQ.Read()) { tmp = new Livres(sQ.GetString(0), sQ.GetString(1), sQ.GetInt32(2), sQ.GetInt32(3), sQ.GetString(4), sQ.GetString(5), sQ.GetString(6), sQ.GetInt32(7), sQ.GetString(8), sQ.GetString(9)); Books.Add(tmp); } }
public static Livres IDtoLivres(Bibliotheque biblio, string id) { Livres tmp = new Livres(); if (biblio.Database != null) { SQLiteDataReader sQ = biblio.Database.Extraction("SELECT * FROM Livre WHERE id_livre LIKE '" + id + "'"); if (sQ.HasRows) { sQ.Read(); tmp = new Livres(sQ.GetString(0), sQ.GetString(1), sQ.GetInt32(2), sQ.GetInt32(3), sQ.GetString(4), sQ.GetString(5), sQ.GetString(6), sQ.GetInt32(7), sQ.GetString(8), sQ.GetString(9)); } } return(tmp); }
public FRM_Editer(Bibliotheque bibli, Livres chemin) { biblio = bibli; InitializeComponent(); try { ch = chemin; Epub(); Copie(1); FRM_NumeriBook.ActiveForm.Visible = false; } catch (Exception ex) { ExceptionHandler.ExeptionCatch(ex); } }
///////// FORM ///////// public FRM_Visualiser(Livres _livre) { livre = _livre; InitializeComponent(); EPubReader = new ClassEpubRead(livre.full_chemin_livre); EpubBook epubBook = EpubReader.ReadBook(livre.full_chemin_livre); foreach (EpubTextContentFile textContentFile in epubBook.ReadingOrder) { string htmlContent = textContentFile.Content; RTB_Test.Text = htmlContent; } if_fullscreen = 0; displayText = RTB_Test.Text; WB_Pages.DocumentText = "<html><div style='font-size:" + textSize + "px;width:" + (WB_Pages.Width - 55) + "px; margin-left:15px; margin-right:auto;'>" + displayText + "</div></html>"; }