public override void StartDrag(IDragInfo dragInfo) { if (dragInfo.SourceItem != null) { if (dragInfo.SourceItem.GetType() == typeof (WebTestScenario)) { dragInfo.Effects = DragDropEffects.None; } else { _testCase = dragInfo.SourceItem as TestCase; if (_testCase != null) { TestScenario scenario = _testCase.Scenario; scenario.Manager.BeginChangeSetBatch("Drag and Drop"); } base.StartDrag(dragInfo); } } }
protected void BulkUnmonitor(TestCase testCase) { _manager.UnmonitorObject(testCase); var ftc = testCase as FolderTestCase; if (ftc != null) { ftc.Children.CollectionChanged += _children_CollectionChanged; _manager.UnmonitorCollection(ftc.Children); foreach (TestCase tc in ftc.Children) { BulkUnmonitor(tc); } } }