private void button4_Click(object sender, RoutedEventArgs e) { ToyEditWindow toyEdit = new ToyEditWindow(allToys[listBox1.SelectedIndex]); toyEdit.ShowDialog(); RefreshData(); }
private void button1_Click(object sender, RoutedEventArgs e) { Toy toy = new Toy(); ToyEditWindow toyEdit = new ToyEditWindow(toy); toyEdit.ShowDialog(); allToys.Add(toy); listBox1.Items.Add(toy); }
private void button1_Click(object sender, RoutedEventArgs e) { Circle circle = new Circle(); ToyEditWindow toyEdit = new ToyEditWindow(circle); toyEdit.ShowDialog(); AllCircles.Add(circle); listBox1.Items.Add(circle); }