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 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 DirectoryTreeItemViewModel(RootModelBase rootModel, HierarchyViewModel parentModel, Model.DirectoryModel model) : base(rootModel, parentModel, model) { HasSubDirectories = EmbeddedDirectoryModel.EmbeddedDirectoryEntry.HasSubFolder; if (HasSubDirectories) _subDirs.Add(dummyNode); setUpBackgroundWorker(); _refreshCommand = new SimpleCommand { CanExecuteDelegate = x => true, ExecuteDelegate = x => Refresh() }; }
public ExViewModel(RootModelBase rootModel, Model.ExModel model) { ////if (model == null) // <> AK throw new ArgumentException("Model cannot be null."); //AK Изменен порядок ////EmbeddedModel = model; ////RootModel = rootModel; RootModel = rootModel; EmbeddedModel = model; if (model != null) { IsDirectory = model.EmbeddedEntry is DirectoryInfoEx; } }
} //For DummyNode public DirectoryTreeItemViewModel(RootModelBase rootModel, HierarchyViewModel parentModel, Model.DirectoryModel model) : base(rootModel, parentModel, model) { HasSubDirectories = EmbeddedDirectoryModel.EmbeddedDirectoryEntry.HasSubFolder; if (HasSubDirectories) { _subDirs.Add(dummyNode); } setUpBackgroundWorker(); _refreshCommand = new SimpleCommand { CanExecuteDelegate = x => true, ExecuteDelegate = x => Refresh() }; }
public HierarchyViewModel(RootModelBase rootModel, HierarchyViewModel parentModel, Model.ExModel model) : base(rootModel, model) { _parent = parentModel; }
public DirectoryViewModel(RootModelBase rootModel, Model.DirectoryModel model) : base(rootModel, model) { }
public DirectoryViewModel(RootModelBase rootModel, Model.DirectoryModel model) : base(rootModel, model) { }
public HierarchyViewModel(RootModelBase rootModel, HierarchyViewModel parentModel, Model.ExModel model) : base(rootModel, model) { _parent = parentModel; }