47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
|
using GCMM.Properties;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.IO;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Text.RegularExpressions;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
namespace GCMM
|
|||
|
{
|
|||
|
public partial class SettingsForm : Form
|
|||
|
{
|
|||
|
private MainForm mainForm;
|
|||
|
public SettingsForm()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
private void Form1_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
gamelocation.Text = Settings.Default.GamePath;
|
|||
|
mainForm = Owner as MainForm;
|
|||
|
}
|
|||
|
|
|||
|
private void browsebtn_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
gamelocation.Text = mainForm.SelectGameFolder() ?? gamelocation.Text;
|
|||
|
}
|
|||
|
|
|||
|
private void savebtn_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
Settings.Default.GamePath = gamelocation.Text;
|
|||
|
Close();
|
|||
|
}
|
|||
|
|
|||
|
private void cancelbtn_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
Close();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|