private void Btn_CheckClick(object sender, EventArgs e) { _GuildBonus = int.Parse(txt_gbonus.Text); try { if (string.IsNullOrEmpty(weaponlvl.Text)) { MessageBox.Show("Seleciona el nivel del arma", "Seleciona Un Nivel", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { txt_resultado.Text = DDTClass.CalcularBonus(_Exp, _TExp, _GuildBonus, _vip, check_Vip.Checked).ToString(); } } catch (Exception) { if (string.IsNullOrEmpty(txt_exp.Text)) { MessageBox.Show("El Campo Experiencia no puede estar vacio", "Campo Vacio", MessageBoxButtons.OK, MessageBoxIcon.Information); } txt_exp.Focus(); } }
public MainForm() { InitializeComponent(); DDTank = new DDTClass(); lb_BasicValue.Text = EnergyStone.ToString(); }