Beispiel #1
0
        private void OnSelectedToyChange(object sender, EventArgs e)
        {
            SelectedToy      = GetSelectedToy();
            SelectedCategory = GetSelectedToyCategory();

            if (SelectedToy == null)
            {
                return;
            }

            RemoveAllBindings();
            AddBindingsForCategory(SelectedCategory);

            HideAllControls();
            ShowSelectedToyControls(SelectedToy);

            AdjustSliders();
        }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     theToy       = new Toy();
     DialogResult = DialogResult.No;
     Close();
 }