예제 #1
0
        private void modButton_Click(object sender, RoutedEventArgs e)
        {
            // closes dynowindow and opens modwindow
            Car       auto      = new Car();
            ModWindow modWundow = new ModWindow(auto);

            modWundow.Show();
            this.Close();
        }
예제 #2
0
        private void modCarButton_Click(object sender, RoutedEventArgs e)
        {
            // Cast selected car to nCar
            Car nCar = (Car)carGrid.SelectedItem;

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