private void button1_Click(object sender, EventArgs e) { Core.UserWord x = Core.Questions.GetById(Id) as Core.UserWord; x.setUserWord(textBox1.Text); x.SetWorth((uint)numericUpDown1.Value); Close(); }
public UserWordPropertiesDialogBox(int id) { InitializeComponent(); Id = id; Core.UserWord x = Core.Questions.GetById(Id) as Core.UserWord; textBox1.Text = x.Word; numericUpDown1.Value = x.MaximumWorthInPoints; }