Esempio n. 1
0
        private void DisplayProcessContainer()
        {
            var contract = GetCreateMeshContract();

            _processContainer = new ProcessContainer(contract);
            _processContainer.ProcessedEvent        += ProcessedHandler;
            _processContainer.SuccessfullyCancelled += ProcessCancelled;
            BaseGrid.Children.Add(_processContainer);
            Grid.SetRow(_processContainer, 1);
            CancelButton.Content    = "Cancel";
            CancelButton.Visibility = Visibility.Visible;
            HelpButton.Visibility   = Visibility.Visible;
            ScreenTypeStatusHelper.CurrentScreenTypesEnum = ScreenTypesEnum.ModelCreationInProcess;
        }
Esempio n. 2
0
        private void SetModelDisplay(ModelMeshAndPositionNeighbors modelMeshAndPositionNeighbors, CreateMeshContract createMeshContract)
        {
            _modelMeshAndPositionNeighbors = modelMeshAndPositionNeighbors;
            _createMeshContract            = createMeshContract;

            if (_processContainer != null)
            {
                //remove existing display
                BaseGrid.Children.Remove(_processContainer);
                _processContainer = null;
            }

            DisplayModelViewContainer();
        }