internal void MenuCutClicked(object sender, EventArgs e) { if (scenarioTreeView.SelectedNode != null) { ICommand command = new CutCommand(scenarioTreeView.SelectedNodes); command.Do(); } }
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(); } }