private void RoleBtn_Click(object sender, EventArgs e) { RoleForm dlg = new RoleForm(fTrap.Role, ThreatType.Trap); if (dlg.ShowDialog() == DialogResult.OK) { fTrap.Role = dlg.Role; RoleBtn.Text = fTrap.Role.ToString(); } }
private void RoleBtn_Click(object sender, EventArgs e) { RoleForm roleForm = new RoleForm(this.fCreature.Role, ThreatType.Creature); if (roleForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.fRole = roleForm.Role; this.RoleBtn.Text = this.fRole.ToString(); } }
private void RoleBtn_Click(object sender, EventArgs e) { RoleForm dlg = new RoleForm(fCreature.Role, ThreatType.Creature); if (dlg.ShowDialog() == DialogResult.OK) { fCreature.Role = dlg.Role; RoleBtn.Text = fCreature.Role.ToString(); update_fields(); } }