Ejemplo n.º 1
0
 void fullscreen()
 {
     if (!_fullScreen)
     {
         if (User32.CResolution(Graph.width, Graph.height, out devmod))
         {
             FormBorderStyle = FormBorderStyle.None;
             WindowState     = FormWindowState.Maximized;
             _fullScreen     = true;
         }
         else
         {
             fullScreen = false;
         }
     }
 }
Ejemplo n.º 2
0
 void windowScreen()
 {
     if (_fullScreen)
     {
         if (User32.CResolution(ref devmod))
         {
             _fullScreen     = false;
             FormBorderStyle = FormBorderStyle.Sizable;
             WindowState     = FormWindowState.Normal;
             ClientSize      = new Size(Graph.width, Graph.height);
         }
         else
         {
             fullScreen = true;
         }
     }
 }