Ejemplo n.º 1
0
 private void FirstReview()
 {
     PopulateSize();
     this.dragDropControl.PopulateSize();
     if (dragDropControl.CurrentItem != null && dragDropControl.CurrentItem.NailImage != null)
     {
         using (Graphics g = Graphics.FromHwnd(playPanel.Handle))
             g.DrawImage(dragDropControl.CurrentItem.NailImage, new Point(0, 0));
         //this.playPanel.BackgroundImage = dragDropControl.CurrentItem.NailImage; //dragDropControl.GetNailImage(dragDropControl.NailPlaylistItemItem);
     }
     else
     {
         if (dragDropControl.Controls.Count > 0)
         {
             PlaylistItemControl item = dragDropControl.Controls[0] as PlaylistItemControl;
             if (item.NailImage != null)
             {
                 using (Graphics g = Graphics.FromHwnd(playPanel.Handle))
                     g.DrawImage(item.NailImage, new Point(0, 0));
             }
             //this.playPanel.BackgroundImage = (dragDropControl.Controls[0] as PlaylistItemControl).NailImage;
         }
     }
 }
Ejemplo n.º 2
0
 public static void AddPlaylistItemRemoveAtAction(IPlaylistItemService dragDropControl, ProWrite.UI.Controls.Playlist.PlaylistItemControl btn, int index)
 {
     if (UndoService.CandAddAction)
     {
         UndoService.AddAction(new PlaylistItemRemoveAtAction(dragDropControl, btn, index));
     }
 }