Exemple #1
0
 private void FormMediaCustom_DragDrop(object sender, DragEventArgs e)
 {
     var data = new MediaDragData(e, AllExtensions);
     if (data.HasImageFile)
     {
         SetPosterImage(data.ImageFile);
     }
     if (data.HasImageUri)
     {
         SetPosterImage(data.ImageUri);
     }
     if (data.HasMovieTitle)
     {
         textBoxTitle.Text = data.MovieTitle;
     }
     if (data.HasReleaseYear)
     {
         textBoxYear.Text = data.ReleaseYear;
     }
 }
Exemple #2
0
 private void FormMediaCustom_DragEnter(object sender, DragEventArgs e)
 {
     var data = new MediaDragData(e, AllExtensions);
     if (data.AcceptDrop)
     {
         e.Effect = DragDropEffects.All;
     }
 }