Ejemplo n.º 1
0
        private void SetWorkspace(ApplicationViewModel appModel)
        {
            if (appModel == null)
            {
                throw new ArgumentNullException("appModel");
            }

            if (appModel.WorkspaceViewModel != null)
            {
                if (WorkspaceViewModel != null)
                {
                    WorkspaceViewModel.Dispose();
                }
                WorkspaceViewModel = new WorkspaceViewModelWrapper(appModel.WorkspaceViewModel);
            }
        }
        private void SetWorkspace(ApplicationViewModel appModel)
        {
            if (appModel == null)
                throw new ArgumentNullException("appModel");

            if (appModel.WorkspaceViewModel != null)
            {
                if (WorkspaceViewModel != null)
                {
                    WorkspaceViewModel.Dispose();
                }
                WorkspaceViewModel = new WorkspaceViewModelWrapper(appModel.WorkspaceViewModel);
            }
        }