public ExViewModel(Model.ExModel model) { if (model == null) { throw new ArgumentException("Model cannot be null."); } EmbeddedModel = model; }
public ExViewModel(RootModelBase rootModel, Model.ExModel model) { if (model == null) { throw new ArgumentException("Model cannot be null."); } EmbeddedModel = model; RootModel = rootModel; IsDirectory = model.EmbeddedEntry is DirectoryInfoEx; }
public FileListViewItemViewModel(FileListViewModel rootModel, Model.ExModel model) : base(rootModel, model) { _rootModel = rootModel; _expandCommand = new SimpleCommand { CanExecuteDelegate = x => true, ExecuteDelegate = x => Expand(_rootModel, (ExModel)x) }; }
public HierarchyViewModel(RootModelBase rootModel, HierarchyViewModel parentModel, Model.ExModel model) : base(rootModel, model) { _parent = parentModel; }
public HierarchyViewModel(Model.ExModel model) : base(model) { _parent = null; }