Exemple #1
0
        public void CanDeleteLastFolderInTheTree()
        {
            var lastFolder = new ContainerInfo();

            _connectionTreeModel.RootNodes[0].AddChild(lastFolder);
            _connectionTree.ConnectionTreeModel = _connectionTreeModel;
            _connectionTree.SelectObject(lastFolder);
            _connectionTree.DeleteSelectedNode();
            Assert.That(_connectionTree.GetRootConnectionNode().HasChildren, Is.False);
        }
Exemple #2
0
 private static void cMenTreeDelete_Click(object sender, EventArgs e)
 {
     ConnectionTree.DeleteSelectedNode();
     Runtime.SaveConnectionsBG();
 }