Exemple #1
0
        private void button4_Click(object sender, RoutedEventArgs e)
        {
            ToyEditWindow toyEdit = new ToyEditWindow(allToys[listBox1.SelectedIndex]);

            toyEdit.ShowDialog();
            RefreshData();
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }