public void Clear(bool clearLight, bool waitForThread)
 {
     Helper.Thread.Abort(ref this.universeLoadingThread, waitForThread);
     ContentBaseList.ClearAll(this.presenter);
     this.presenter.TrackedContent = null;
     this.presenter.ClearDisplay(clearLight);
 }
        public void Deselect()
        {
            ContentBaseList.ClearAll(this.presenter);

            if (this.presenter.ViewerType == ViewerType.SolarArchetype || this.presenter.ViewerType == ViewerType.ModelPreview)
            {
                this.presenter.ClearDisplay(false);
            }
        }
        public void Select(TableBlock block)
        {
            // return if object is already selected

            /*if (this.presenter.SelectedContent != null && this.presenter.SelectedContent.Block.Id == block.Id)
             * {
             *  return;
             * }*/

            if (block.Visibility)
            {
                bool isModelPreview = this.presenter.ViewerType == ViewerType.SolarArchetype || this.presenter.ViewerType == ViewerType.ModelPreview;
                if (isModelPreview)
                {
                    ContentBaseList.ClearAll(this.presenter);
                    this.presenter.ClearDisplay(false);
                    this.presenter.Add(block);
                }

                // select object
                ContentBase content = this.presenter.FindContent(block);
                if (content != null)
                {
                    ContentBaseList.AddItem(this.presenter, content);

                    if (isModelPreview)
                    {
                        // focus and zoom into object
                        this.presenter.LookAtAndZoom(content, 1.25, false);
                    }

                    return;
                }
            }
            else
            {
                // show selection box for invisible objects
                ContentBase content = Presenter.CreateContent(block.ObjectType);
                if (content != null)
                {
                    SystemParser.SetValues(content, block, false);
                    ContentBaseList.AddItem(this.presenter, content);
                    return;
                }
            }

            // deselect currect selection if nothing could be selected
            this.Deselect();
        }