private void btnFinish_Click(object sender, EventArgs e) { Properties.Settings.Default.ForceVersion = "Auto"; if (radioButton1.Visible) { Properties.Settings.Default.ForceVersion = "Invalid"; if (radioButton1.Checked) { Properties.Settings.Default.ForceVersion = "2001"; } else if (radioButton2.Checked) { Properties.Settings.Default.ForceVersion = "1999-nodrm"; } else { Close(); } } Properties.Settings.Default.GameClientDirectory = gameClientDirectory; Properties.Settings.Default.Save(); LauncherForm launcher = new LauncherForm(); launcher.FormClosed += (s, args) => Close(); launcher.Show(); Hide(); }
public ClientForm(Process gameProcess, LauncherForm launcherForm) { InitializeComponent(); this.gameProcess = gameProcess; this.launcherForm = launcherForm; tcpClient = new TcpClient(); //listenerThread = new Thread(ServerListener); }