Example #1
0
        public void StlPivot_Load()
        {
            if (Values.stl_IsBusy)
            {
                return;
            }

            Values.currentStlFileChangedEvent += Stl_currentStlFileChangedEvent;

            if (Values.currentStlFile == "")
            {
                return;
            }

            try
            {
                XamlGame.assignDrawingSurface(renderingController, StlSurface, ref drawingSurfaceUpdateHandler);
                renderingController.Components.Add(new StlComponent(renderingController, this));
                (renderingController.Components[0] as StlComponent).loadStlContent();
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
            }
        }