private void OnSelectedToyChange(object sender, EventArgs e) { SelectedToy = GetSelectedToy(); SelectedCategory = GetSelectedToyCategory(); if (SelectedToy == null) { return; } RemoveAllBindings(); AddBindingsForCategory(SelectedCategory); HideAllControls(); ShowSelectedToyControls(SelectedToy); AdjustSliders(); }
private void button2_Click(object sender, EventArgs e) { theToy = new Toy(); DialogResult = DialogResult.No; Close(); }