private void button1_Click(object sender, EventArgs e) { var lines = File.ReadAllLines("Rust/LumaEmu.ini"); lines[1] = "PlayerName = " + comboBox1.Text; File.WriteAllLines("Rust/LumaEmu.ini", lines); Namechange set = this; set.Close(); }
private void button8_Click(object sender, EventArgs e) { Namechange nwForm = new Namechange(); nwForm.ShowDialog(this); }