Esempio n. 1
0
        private void OnGazeCircularButton(object sender, GazeAwareEventArgs e)
        {
            CBook oBook = CConfig.Instance.GetBook(m_iBookId);
            FBook fBook = new FBook(oBook);

            fBook.Show();
        }
Esempio n. 2
0
        private void pictureBox_DoubleClick(object sender, EventArgs e)
        {
            var pb = sender as PictureBox;

            CBook oBook = CConfig.Instance.GetBook(pb.Image.Tag.ToString());
            FBook fBook = new FBook(oBook);

            fBook.Show();
        }
Esempio n. 3
0
        private void circularButton1_MouseEnter(object sender, EventArgs e)
        {
            CBook oBook = CConfig.Instance.GetBook(m_iBookId);

            if (oBook.Pages.Count != 0)
            {
                FBook fBook = new FBook(oBook, null);
                fBook.Show();
            }
            else
            {
                FChapter fChapter = new FChapter(oBook, this);
                fChapter.Show();
            }
        }
Esempio n. 4
0
 private void OnGazeCircularButton(object sender, GazeAwareEventArgs e)
 {
     if (e.HasGaze)
     {
         /*CBook oBook = CConfig.Instance.GetBook(m_iBookId);
          * FBook fBook = new FBook(oBook);
          * fBook.Show();*/
         CBook oBook = CConfig.Instance.GetBook(m_iBookId);
         if (oBook.Pages.Count != 0)
         {
             FBook fBook = new FBook(oBook, null);
             fBook.Show();
         }
         else
         {
             FChapter fChapter = new FChapter(oBook, this);
             fChapter.Show();
         }
     }
 }
Esempio n. 5
0
        private void pictureBox_DoubleClick(object sender, EventArgs e)
        {
            var pb = sender as PictureBox;

            /*CBook oBook = CConfig.Instance.GetBook(pb.Image.Tag.ToString());
             * FBook fBook = new FBook(oBook);
             * fBook.Show();*/

            CBook oBook = CConfig.Instance.GetBook(pb.Image.Tag.ToString());

            if (oBook.Pages.Count != 0)
            {
                FBook fBook = new FBook(oBook, null);
                fBook.Show();
            }
            else
            {
                FChapter fChapter = new FChapter(oBook, this);
                fChapter.Show();
            }
        }