Пример #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();
        }