コード例 #1
0
 private void dgvBookmarks_RowMoving(object sender, Controls.RowMovingEventArgs e)
 {
     if (e.Source.Name == "dgvImages")
     {
         e.Cancel = true;
         _bookmarks.Insert(e.Destination, new Bookmark()
         {
             Target = e.SourceRows[0].Index
         });
     }
     else if (e.Source == dgvBookmarks)
     {
         _bookmarks.Move(e.SourceRows[0].Index, e.Destination);
     }
 }