Beispiel #1
0
        private void listView1_DragDrop(object sender, DragEventArgs e)
        {
            if (e.Data.GetDataPresent(typeof(Tuple <List <Item>, string>)))
            {
                Tuple <List <Item>, string> temp = (Tuple <List <Item>, string>)e.Data.GetData(typeof(Tuple <List <Item>, string>));

                ItemsViewer ParentForm = (ItemsViewer)this.Parent.Parent.Parent;

                frmCopy cpy = new frmCopy(temp.Item1, ParentForm.StrCurrentPath);
                cpy.ShowDialog();
            }
        }
Beispiel #2
0
 internal void MoveItems()
 {
     if (selectedItems.Count == 0)
     {
         Item temp = GetCurrentSelectedItem();
         if (temp != null) //Move tu Item dang duoc Focus
         {
             frmCopy cpy = new frmCopy(temp, "", CopyType.Move);
             cpy.ShowDialog();
         }
         else
         {
             MessageBox.Show(MultiLanguage.GetText("no_item_selected"), MultiLanguage.GetText("error_text"), MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
     else //Move tu selectedList
     {
         frmCopy cpy = new frmCopy(selectedItems.Values.ToList(), "", CopyType.Move);
         cpy.ShowDialog();
     }
 }