private void btnResetSettings_Click(object sender, EventArgs e) { DialogResult r = MessageBox.Show("Are you sure you want to reset all settings of the client and restart it?", "Reset confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (r == DialogResult.Yes) { Settings.Reset(); D2MP.Restart(); } }
private void Restart_Click(object sender, EventArgs e) { D2MP.Restart(); }