private void cmdBurnEdge_Click(object sender, EventArgs e) { // Edge cannot go below 1. if (_objAttribute.Value == 0) { MessageBox.Show(LanguageManager.GetString("Message_CannotBurnEdge", GlobalOptions.Language), LanguageManager.GetString("MessageTitle_CannotBurnEdge", GlobalOptions.Language), MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } // Verify that the user wants to Burn a point of Edge. if (MessageBox.Show(LanguageManager.GetString("Message_BurnEdge", GlobalOptions.Language), LanguageManager.GetString("MessageTitle_BurnEdge", GlobalOptions.Language), MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } _objAttribute.Degrade(1); ValueChanged?.Invoke(this, e); }
private void cmdBurnEdge_Click(object sender, EventArgs e) { // Edge cannot go below 1. if (AttributeObject.Value <= 0) { Program.MainForm.ShowMessageBox(LanguageManager.GetString("Message_CannotBurnEdge"), LanguageManager.GetString("MessageTitle_CannotBurnEdge"), MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } // Verify that the user wants to Burn a point of Edge. if (Program.MainForm.ShowMessageBox(LanguageManager.GetString("Message_BurnEdge"), LanguageManager.GetString("MessageTitle_BurnEdge"), MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } AttributeObject.Degrade(1); ValueChanged?.Invoke(this, e); }