public DirectoryRecordViewModel(DirectoryRecord directoryRecord) { _directoryRecord = directoryRecord; if (_directoryRecord.IsDriver) { DirectoryName = string.Format(LocalizedStrings.LocalDisk, _directoryRecord.Info.Name.Substring(0, 1)); } else { DirectoryName = _directoryRecord.Info.Name; } }
public FileItemsViewModel(DirectoryRecord directoryRecord) { DirectoryRecord = directoryRecord; }