示例#1
0
 //Infos sur le livre
 private void BT_Info_Click(object sender, EventArgs e)
 {
     WB_Infos.DocumentText = "<html><body style=\"background: LightGray\" style = \"font-family:arial\"><b>Titre :</b> " + EPubReader.titre + "<br><br><b>Auteur :</b> " + EPubReader.auteur + "<br><br><b>Publié :</b> " + EPubReader.date + "<br><br><b>Langue :</b> " + EPubReader.langage + "<br><br><b>Genre :</b> " + EPubReader.genre + "<br><br><br><br>" + EPubReader.descri;
     if (WB_Infos.Visible == false)
     {
         WB_Infos.BringToFront();
         BT_Info.BackColor = Color.LightGray;
         WB_Infos.Show();
         BT_PgLeft.Hide();
         BT_PgNext.Hide();
         BT_Annotation.Enabled = false;
         BT_FontUp.Enabled     = false;
         BT_FontDown.Enabled   = false;
         BT_PgNext.Enabled     = false;
         BT_PgLeft.Enabled     = false;
     }
     else
     {
         BT_Info.BackColor = Color.White;
         WB_Infos.Hide();
         BT_PgLeft.Show();
         BT_PgNext.Show();
         BT_Annotation.Enabled = true;
         BT_FontUp.Enabled     = true;
         BT_FontDown.Enabled   = true;
         BT_PgNext.Enabled     = true;
         BT_PgLeft.Enabled     = true;
     }
 }
示例#2
0
 private void FRM_Visualiser_Load(object sender, EventArgs e)
 {
     if (TXT_Search.Text == "")
     {
         TXT_Search.Text = "Recherche...";
     }
     LBL_TitreLivre.Text += "" + EPubReader.auteur + " -  " + EPubReader.titre;
     WB_Infos.Hide();
     //WB_Pages.DocumentText = "<html><div style='font-size:" + textSize + "px;'>" + displayText + "</div></html>";
     RTB_FontUp.Hide(); RTB_FontDown.Hide(); RTB_Chapter.Hide(); RTB_Annot.Hide(); RTB_Infos.Hide(); RTB_FullScreen.Hide(); RTB_Print.Hide(); RTB_PageN.Hide(); RTB_PageL.Hide();
 }