Example #1
0
        private void InfoSweetnessButton_Click(object sender, EventArgs e)
        {
            var sweet = (Sweetness)SweetnessBox.SelectedItem;
            var count = _gift.Sweets[sweet];

            var form = new EditSweetnessForm(sweet, count);

            form.ShowDialog();
        }
Example #2
0
        private void AddSweetsButton_Click(object sender, EventArgs e)
        {
            var form = new EditSweetnessForm(this, _gift.Sweets);

            form.ShowDialog();
        }