Exemplo n.º 1
0
 private void OnFullScreenCommand()
 {
     if (Program.IsRun)
     {
         DR2API.DR2_SetWndChanging(ApiHandle, true);
     }
     _fulling    = true;
     _fullScreen = !_fullScreen;
     if (_client != null)
     {
         _client.FullScreen(_fullScreen);
     }
     _fulling = false;
     if (Program.IsRun)
     {
         DR2API.DR2_SetFullscreen(ApiHandle, _fullScreen);
     }
     if (Program.IsRun)
     {
         DR2API.DR2_SetWndChanging(ApiHandle, false);
     }
 }