Techblox Mod Manager / Launcher
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

39 rindas
918B

  1. using System;
  2. using System.Windows.Forms;
  3. namespace TBMM
  4. {
  5. public partial class SettingsForm : Form
  6. {
  7. private MainForm mainForm;
  8. public SettingsForm()
  9. {
  10. InitializeComponent();
  11. }
  12. private void Form1_Load(object sender, EventArgs e)
  13. {
  14. mainForm = (MainForm) Owner;
  15. gamelocation.Text = mainForm.Configuration.GamePath;
  16. }
  17. private void browsebtn_Click(object sender, EventArgs e)
  18. {
  19. gamelocation.Text = mainForm.SelectGameFolder() ?? gamelocation.Text;
  20. }
  21. private void savebtn_Click(object sender, EventArgs e)
  22. {
  23. mainForm.Configuration.GamePath = gamelocation.Text;
  24. mainForm.Configuration.Save();
  25. Close();
  26. }
  27. private void cancelbtn_Click(object sender, EventArgs e)
  28. {
  29. Close();
  30. }
  31. }
  32. }