Example #1
0
        private void MoveItem_Click(object sender, EventArgs e)
        {
            var    currentItem     = (MediaItemDTO)this.ItemsTable.CurrentRow.DataBoundItem;
            string currentItemPath = currentItem.Path;

            if (this.SelectFolder.ShowDialog() == DialogResult.OK)
            {
                string destinationFolder = SelectFolder.SelectedPath;
                destinationFolder += @"\" + service.GetItemName(currentItemPath, true);
                service.MoveFile(currentItemPath, destinationFolder);
            }
        }