Code cleanup.
This commit is contained in:
@@ -20,7 +20,8 @@ namespace Cryville.Crtr.Browsing {
|
||||
DirectoryInfo[] _filteredItems = new DirectoryInfo[0];
|
||||
string _filter = string.Empty;
|
||||
readonly List<string> _dirParts = new List<string>();
|
||||
public IList<string> CurrentDirectory { get { return _dirParts.AsReadOnly(); } }
|
||||
readonly IList<string> m_dirParts;
|
||||
public IList<string> CurrentDirectory { get { return m_dirParts; } }
|
||||
public int Count { get { return _filteredItems.Length; } }
|
||||
|
||||
static bool _init;
|
||||
@@ -34,6 +35,7 @@ namespace Cryville.Crtr.Browsing {
|
||||
_init = true;
|
||||
ExtensionManager.Init(rootPath);
|
||||
}
|
||||
m_dirParts = _dirParts.AsReadOnly();
|
||||
_watcher.Changed += OnFileChanged;
|
||||
_watcher.Created += OnFileChanged;
|
||||
_watcher.Deleted += OnFileChanged;
|
||||
|
Reference in New Issue
Block a user