private void btn_pref_add_Click(object sender, EventArgs e) { Description pref = new Description(); DescriptionForm form = new DescriptionForm(pref, true); DialogResult dr = form.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { _user.Preferences.Add(pref); //DBINSERT RedrawPreferences(); } }
private void btn_pref_edit_Click(object sender, EventArgs e) { DescriptionForm form = new DescriptionForm(_user.Preferences[drop_preference.SelectedIndex], true); form.ShowDialog(); }
private void btn_desc_edit_Click(object sender, EventArgs e) { DescriptionForm form = new DescriptionForm(_user.Description, false); form.ShowDialog(); }