public WorkspaceViewModel(Workspace workspace) { if (workspace == null) throw new ArgumentNullException("workspace"); this.workspace = workspace; ViewerViewModel = new ViewerViewModel(workspace.Viewer) { ViewMovable = true, GridVisible = true }; LoadBlockMeshViewModel = new LoadBlockMeshViewModel(workspace.Preview); }
public WorkspaceViewModel(Workspace workspace) { if (workspace == null) { throw new ArgumentNullException("workspace"); } this.workspace = workspace; ViewerViewModel = new ViewerViewModel(workspace.Viewer) { ViewMovable = true, GridVisible = true }; LoadBlockMeshViewModel = new LoadBlockMeshViewModel(workspace.Preview); }
public void Initialize(int itemCountPerPage) { SelectedFileName = null; paging.ItemCountPerPage = itemCountPerPage; fileNames = preview.Workspace.StorageBlockService.GetBlockNames(); paging.ItemCount = fileNames.Count; while (viewerViewModels.Count < itemCountPerPage) { var viewerViewModel = new ViewerViewModel(preview.CreateViewer()); viewerViewModels.Add(viewerViewModel); } InitializeViewerViewModels(); }