Skip to content

Commit 328e60c

Browse files
committed
foobar
1 parent 6aed60e commit 328e60c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

RetailCoder.VBE/UI/CodeExplorer/CodeExplorerViewModel.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Collections.ObjectModel;
44
using System.Text;
55
using System.Threading.Tasks;
6+
using Microsoft.Vbe.Interop;
67
using Rubberduck.Parsing.Symbols;
78
using Rubberduck.Parsing.VBA;
89

@@ -35,7 +36,17 @@ private void ParserState_ModuleStateChanged(object sender, Parsing.ParseProgress
3536

3637
public class ExplorerProjectItemViewModel : ViewModelBase
3738
{
38-
39+
private readonly VBProject _project;
40+
41+
public ExplorerProjectItemViewModel(VBProject project)
42+
{
43+
_project = project;
44+
}
45+
46+
public string Name { get { return _project.Name; } }
47+
public bool IsProtected { get { return _project.Protection == vbext_ProjectProtection.vbext_pp_locked; } }
48+
49+
3950
}
4051

4152
public class ExplorerComponentItemViewModel : ViewModelBase

0 commit comments

Comments
 (0)