Example #1
0
 private void xdhelper(DisplayPanel p, bool b)
 {
     p.Size = ClientRectangle.Size;
     p.Visible = b;
 }
Example #2
0
 private void xdlambda(DisplayPanel p, bool b)
 {
     if (p.InvokeRequired)
     {
         p.Invoke(new Action(() => xdhelper(p, b)));
     }
     else
     {
         xdhelper(p, b);
     }
 }
Example #3
0
        public void transitionTo(DisplayPanel p)
        {
            if (activePanel != null)
            {
                xdlambda(activePanel, false);
            }
            activePanel = p;
            xdlambda(p, true);

            clearFocus();

            Invalidate();
        }