private void button1_Click(object sender, EventArgs e) { Settings.settings.temessage = textBox1.Text; Settings.settings.twmessage = textBox2.Text; Settings.SaveConfig(); this.Dispose(); }
private void button2_Click(object sender, EventArgs e) { s.label2.Text = "N/A"; Settings.settings.discord_token = ""; Settings.SaveConfig(); this.Dispose(); }
private void button1_Click(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(textBox1.Text)) { s.label2.Text = textBox1.Text; Settings.settings.discord_token = textBox1.Text; Settings.SaveConfig(); } this.Dispose(); }
public Form1() { InitializeComponent(); defaultForm = this; Settings.settings.cversion = "1.4.1.1"; Settings.SaveConfig(); if (Directory.Exists("update")) { Directory.Delete("update", true); } }
private void button1_Click(object sender, EventArgs e) { string t = textBox1.Text; if (actual == -1) { Settings.settings.AddString(t); } else if (actual >= 0) { Settings.settings.EditString(actual, t); } Settings.SaveConfig(); Settings.UpdateList(caller); Form1.defaultForm.PrepareButtons(Settings.settings.strings); this.Dispose(); }
private void checkBox2_CheckedChanged(object sender, EventArgs e) { Settings.settings.discord_pmonly = ((CheckBox)sender).Checked; Settings.SaveConfig(); }