public CheckableItem(CheckableItem parent, string path, long revision, SharpSvn.SvnNodeKind nodeKind, MainViewModel mvm, bool fakeChildren = true) { _path = path.Trim('/'); _revision = revision; _parent = parent; mainViewModel = mvm; if (_path == "") { _text = "/"; } else { _text = System.IO.Path.GetFileName(_path); } if (nodeKind != SharpSvn.SvnNodeKind.File && nodeKind != SharpSvn.SvnNodeKind.SymbolicLink) { if (fakeChildren) { Children = new ObservableCollection <CheckableItem>() { new CheckableItem(true) }; } else { Children = new ObservableCollection <CheckableItem>(); } _isFile = false; } else { _isFile = true; } if (nodeKind == SharpSvn.SvnNodeKind.Directory) { _isFolder = true; } }
void IGitItemUpdate.RefreshTo(NoSccStatus status, SvnNodeKind nodeKind) { RefreshTo(status, nodeKind); }