protected override void OnMouseDown(MouseEventArgs e) { base.OnMouseDown(e); if (e.Button == MouseButtons.Left && proj != null) { switch (proj.GetProjectType()) { case ProjectType.Bible: BibleProject bp = (BibleProject)proj; bp.GoNextSlide(); break; case ProjectType.Song: SongProject sp = (SongProject)proj; sp.GoNextSlide(); break; } } }
private void btnNext_Click(object sender, EventArgs e) { proj.GoNextSlide(); }