private void linkStopLowMa_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { using (var ff = new FormEnterInt("Мана", (int)((LinkLabel)sender).Tag, 0, 100)) { if (ff.ShowDialog() != DialogResult.OK) { return; } SetStopLowMa(ff.Val); } }
private void linkRestoreHp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { using (var ff = new FormEnterInt("Здоровье", (int)((LinkLabel)sender).Tag, 0, 100)) { if (ff.ShowDialog() != DialogResult.OK) { return; } SetRestoreHp(ff.Val); } }
private void linkMagHits_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { using (var ff = new FormEnterInt("Удар", (int)((LinkLabel)sender).Tag, 5, 1000)) { if (ff.ShowDialog() != DialogResult.OK) { return; } SetMagHits(ff.Val); } }
private void linkNewGroupLevel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { using (var ff = new FormEnterInt("Уровень", (int)((LinkLabel)sender).Tag, 0, 33)) { if (ff.ShowDialog() != DialogResult.OK) { return; } SetNewGroupLevel(ff.Val); } }