예제 #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);
        }
예제 #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);
        }
예제 #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();
        }
예제 #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();
        }