Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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();
        }