Пример #1
0
        public virtual bool Check()
        {
            if (this.VisualsDisplayHistory == null)
            {
                throw new CheckFailedException(this.GetType(), typeof(VisualsDisplayHistory));
            }

            if (this.SceneManager == null)
            {
                throw new CheckFailedException(this.GetType(), typeof(ISceneManager));
            }
            if (this.Display1 == null)
            {
                throw new CheckFailedException(this.GetType(), typeof(IGraphSceneDisplay <IVisual, IVisualEdge>));
            }
            if (this.Display2 == null)
            {
                throw new CheckFailedException(this.GetType(), typeof(IGraphSceneDisplay <IVisual, IVisualEdge>));
            }
            if (this.Backend == null)
            {
                throw new CheckFailedException(this.GetType() + "needs a Backend");
            }

            Display1.Check();
            Display2.Check();

            return(true);
        }