Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. private void Highquality_Click(object sender, EventArgs e)// High Quality
  2. {
  3. try
  4. {
  5.  
  6. var MyIni = new IniFile(Path() + @"\ini\GameSetup.ini");
  7. if (MyIni.SectionExist("ScreenMode") && MyIni.SectionExist("GameMode"))
  8. {
  9.  
  10. MyIni.Write("ScreenModeRecord", "4", "ScreenMode");
  11. MyIni.Write("ScrWidth", "1280", "ScreenMode");
  12. MyIni.Write("ScrHeight", "1024", "ScreenMode");
  13. MyIni.Write("HighTimes", "2", "GameMode");
  14. MyIni.Write("GameModeRecord", "0", "GameMode");
  15. MyIni.Write("NormalTimes", "3", "GameMode");
  16. if (MyIni.KeyExists("LowTimes", "GameMode"))
  17. {
  18. // MyIni.Write("LowTimes", "1", "GameMode");
  19. MyIni.DeleteKey("LowTimes", "GameMode");
  20. }
  21. else
  22. {
  23. MyIni.DeleteKey("LowTimes", "GameMode");
  24. }
  25.  
  26.  
  27. // lblStatus.Text = "Playing Game in HighQulaity";
  28. highqulaity = true;
  29. if (highqulaity == true)
  30. {
  31. cmdPlay.Click += new EventHandler(cmdPlay_Click);
  32. }
  33. else
  34. {
  35. MessageBox.Show("Error Please Reinstall the game patch and try .");
  36. }
  37.  
  38.  
  39.  
  40. }
  41. else
  42. {
  43. highqulaity = false;
  44. MessageBox.Show("Error Please Reinstall the game patch and try .");
  45. return;
  46. }
  47.  
  48.  
  49.  
  50. }
  51. catch
  52. {
  53. highqulaity = false;
  54. MessageBox.Show("Error");
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement