Example #1
0
        public void FolderPasteTo_Click(object sender, RoutedEventArgs e)
        {
            TreeViewItem ClickedItem = Utility.GetClickedTreeViewItem(sender, Tree_Hierarchy);

            CopyPaster.PasteTo(this, Tree_Hierarchy, ClickedItem.Name);
            WindowTitle.AddStar(this);
        }
Example #2
0
        public void Folder_KeyDown(object sender, KeyEventArgs e)
        {
            e.Handled = true;
            TreeViewItem SelectedItem = sender as TreeViewItem;

            if (e.Key == Key.C && Keyboard.IsKeyDown(Key.LeftCtrl))
            {
                CopyPaster.IsCut          = false;
                CopyPaster.CopyObjectName = SelectedItem.Name;
            }
            else if (e.Key == Key.X && Keyboard.IsKeyDown(Key.LeftCtrl))
            {
                CopyPaster.IsCut          = true;
                CopyPaster.CopyObjectName = SelectedItem.Name;
            }
            else if (e.Key == Key.V && Keyboard.IsKeyDown(Key.LeftCtrl))
            {
                CopyPaster.PasteTo(this, Tree_Hierarchy, SelectedItem.Name);
                WindowTitle.AddStar(this);
            }
        }