Пример #1
0
 private void B_DisplaySettings_Click(object sender, EventArgs e)
 {
     using (GameSettings _GraphicsSettings = new GameSettings(new Config.CustomConfig(customConfig), new Config.LithTechConfig(lithTechConfig)))
     {
         _GraphicsSettings.StartPosition = FormStartPosition.Manual;
         _GraphicsSettings.SetDesktopLocation(this.DesktopLocation.X + 20, this.DesktopLocation.Y + 20);
         if (_GraphicsSettings.ShowDialog() == DialogResult.OK)
         {
             lithTechConfig = _GraphicsSettings.lithTechConfig;
             customConfig   = _GraphicsSettings.customConfig;
         }
     }
 }
Пример #2
0
 private void B_DisplaySettings_Click(object sender, EventArgs e)
 {
     _GraphicsSettings.StartPosition = FormStartPosition.Manual;
     _GraphicsSettings.SetDesktopLocation(this.DesktopLocation.X + 20, this.DesktopLocation.Y + 20);
     _GraphicsSettings.ShowDialog();
 }