Exemple #1
0
 private void pictureBox1__MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         Image img = manga_.GetNextPage();
         if (img == null)
         {
             return;
         }
         pictureBox1_.Image = img;
         centerImage();
     }
     else if (e.Button == MouseButtons.Middle)
     {
         Image img = manga_.GetPrevPage();
         if (img == null)
         {
             return;
         }
         pictureBox1_.Image = img;
         centerImage();
     }
     else if (e.Button == MouseButtons.Right)
     {
         ;
     }
 }