Пример #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;
         }
     }
 }
Пример #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;
         }
     }
 }