Exemple #1
0
        private void dynoButton_Click(object sender, RoutedEventArgs e)
        {
            // Closes this and open dynowindow
            DynoWindow dwin = new DynoWindow(carToModify);

            dwin.Show();
            this.Close();
        }
        private void testCarButton_Click(object sender, RoutedEventArgs e)
        {
            // Cast selected car to nCar
            Car nCar = (Car)carGrid.SelectedItem;

            if (nCar != null)
            {
                // Open DynoWindow
                DynoWindow nDynoWindow = new DynoWindow(nCar);
                nDynoWindow.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Select a car");
            }
        }