public bool IsModuleFileSelected(TreeNode selected) { if (selected == null) { return false; } string[] path = selected.FullPath.Split('\\'); if (path.Length != 2) { return false; } return true; }