Ejemplo n.º 1
0
        public bool Redraw()
        {
            gfx.BeginDrawFrame();
            {
                RenderControl(activeControl);
                RenderTransitionOverlay();

                if (mobilePianoVisible)
                {
                    RenderControl(mobilePiano);
                }

                if (toolbar.IsExpanded)
                {
                    RenderControl(quickAccessBar);
                    RenderControl(toolbar);
                }
                else
                {
                    RenderControl(toolbar);
                    RenderControl(quickAccessBar);
                }
            }
            gfx.EndDrawFrame();

            return(false);
        }
Ejemplo n.º 2
0
        public unsafe bool Redraw()
        {
            if (AnyControlNeedsRedraw())
            {
                // HACK : This happens when we have a dialog open, like the NSF dialog.
                if (controls[0].App.Project == null)
                {
                    return(true);
                }

                gfx.BeginDrawFrame();

                foreach (var control in controls)
                {
                    gfx.BeginDrawControl(new System.Drawing.Rectangle(control.Left, control.Top, control.Width, control.Height), height);
                    control.Render(gfx);
                    control.ClearDirtyFlag();
                }

                gfx.EndDrawFrame();

                return(true);
            }

            return(false);
        }