Ejemplo n.º 1
0
        private void RegisterNewAward()
        {
            AwardForm form = new AwardForm();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                awards.Add(form.Title, form.Description);
                DisplayAwards();
            }
        }
Ejemplo n.º 2
0
        private void EditSelectedAward()
        {
            if (ctlAwards.SelectedCells.Count > 0)
            {
                Award award = (Award)ctlAwards.SelectedCells[0].OwningRow.DataBoundItem;

                AwardForm form = new AwardForm(award);
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    award.Title       = form.Title;
                    award.Description = form.Description;
                    DisplayAwards();
                }
            }
        }