コード例 #1
0
 public FRM_ConvertirGuide(Livres chemin)
 {
     ch = chemin;
     InitializeComponent();
     GB_meta.Visible = true;
     SelectionLivre(ch.full_chemin_livre);
 }
コード例 #2
0
 public FRM_EditerMetadonnees(ConnectSQLite _db, Livres _livre)
 {
     Database = _db;
     livre    = _livre;
     InitializeComponent();
     LivreAndFileMod(livre.full_chemin_livre);
     ExtractionMetadataSql(livre.id_livre);
 }
コード例 #3
0
        /// <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);
            }
        }
コード例 #4
0
ファイル: Livres.cs プロジェクト: LucasPalluel/Liseuse
        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);
        }
コード例 #5
0
 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);
     }
 }
コード例 #6
0
        ///////// 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>";
        }