コード例 #1
0
        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();
            }
        }
コード例 #2
0
 private void Restart_Click(object sender, EventArgs e)
 {
     D2MP.Restart();
 }