Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
        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();
            }
        }