示例#1
0
        private void _ok_Click(object sender, EventArgs e)
        {
            int id = GetFreeIdUp(_id.Value);

            if (id == -1)
            {
                id = GetFreeIdDown(_id.Value);
            }
            if (id > 0)
            {
                _strength             = _threatModel.AddStrength(id, _name.Text);
                _strength.Description = _description.Text;
            }
        }