示例#1
0
        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();
            }
        }
示例#2
0
 private void btn_pref_edit_Click(object sender, EventArgs e)
 {
     DescriptionForm form = new DescriptionForm(_user.Preferences[drop_preference.SelectedIndex], true);
     form.ShowDialog();
 }
示例#3
0
        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();
            }
        }
示例#4
0
 private void btn_desc_edit_Click(object sender, EventArgs e)
 {
     DescriptionForm form = new DescriptionForm(_user.Description, false);
     form.ShowDialog();
 }
示例#5
0
        private void btn_pref_edit_Click(object sender, EventArgs e)
        {
            DescriptionForm form = new DescriptionForm(_user.Preferences[drop_preference.SelectedIndex], true);

            form.ShowDialog();
        }
示例#6
0
        private void btn_desc_edit_Click(object sender, EventArgs e)
        {
            DescriptionForm form = new DescriptionForm(_user.Description, false);

            form.ShowDialog();
        }