private void moviePanel_Click(object sender, EventArgs e) { MovieInfo info = new MovieInfo(m); info.Show(); }
private void moviePanel_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left && e.Clicks == 1) { this.DoDragDrop(m, DragDropEffects.Copy | DragDropEffects.Move); } else if(e.Button == MouseButtons.Left && e.Clicks == 2) { MovieInfo mi = new MovieInfo(m); mi.Show(); } }
private void openMovieInfo(object sender, EventArgs e) { Panel p = (Panel)sender; MovieInfo m = new MovieInfo(curMovies[p]); m.Show(); }