Ejemplo n.º 1
0
        public PerfScope(IVisio.Application vis, VA.Application.PerfSettings new_settings)
        {
            this.app = vis;

            // save the old settings
            this.old_settings = new VA.Application.PerfSettings();
            this.old_settings.Load(this.app);

            // Set the new settings
            new_settings.Apply(app);
        }
Ejemplo n.º 2
0
        public PerfScope(IVisio.Application vis, VA.Application.PerfSettings new_settings)
        {
            this.app = vis;

            // save the old settings
            this.old_settings = new VA.Application.PerfSettings();
            this.old_settings.Load(this.app);

            // Set the new settings
            new_settings.Apply(app);
        }
Ejemplo n.º 3
0
        public Page()
        {
            this.Shapes    = new ShapeList();
            this.PageCells = new VA.Pages.PageCells();

            this.PerfSettings             = new VA.Application.PerfSettings();
            this.PerfSettings.DeferRecalc = 0;


            // By Enable ScreenUpdating by default
            // If it is disabled it messes up page resizing (there may be a workaround)
            // TODO: Try the DrawTreeMultiNode2 unit test to see how setting it to 1 will affect the rendering

            this.PerfSettings.ScreenUpdating    = 1;
            this.PerfSettings.EnableAutoConnect = false;
            this.PerfSettings.LiveDynamics      = false;
        }