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(); } }
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(); } } }
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(); } }