Exemplo n.º 1
0
        private void Remove_Click(object sender, EventArgs e)
        {
            Car c = new PAIN_Forms.Car(
                int.Parse(listView1.SelectedItems[0].Name),
                String.Empty,
                0,
                0,
                CarType.Personal
                );

            parent.DeleteCar(c);
        }
Exemplo n.º 2
0
        private void Remove_Click(object sender, EventArgs e)
        {
            Car c = new PAIN_Forms.Car(
                int.Parse(IdTextBox.Text),
                BrandTextBox.Text,
                int.Parse(MaxVelocityTextBox.Text),
                int.Parse(ProdYearTextBox.Text),
                chooser.choosedType
                );

            parent.DeleteCar(c);
            this.Close();
        }