コード例 #1
0
 internal void MenuCutClicked(object sender, EventArgs e)
 {
     if (scenarioTreeView.SelectedNode != null)
     {
         ICommand command = new CutCommand(scenarioTreeView.SelectedNodes);
         command.Do();
     }
 }
コード例 #2
0
        private void AfterDragEnded(object sender, NodeDraggedEventArgs e)
        {
            FolderTestCase testcase = e.TargetNode.Testcase as FolderTestCase;

            if (testcase != null)
            {
                ICommand command = new CutCommand(new QAliberTreeNode[] { (QAliberTreeNode)e.SourceNode });
                command.Do();
                command = new PasteCommand(e.TargetNode);
                commandsHistory.Do(command);
                OnScenarioChanged();
            }
        }