private void Agregar_Click(object sender, RoutedEventArgs e)
        {
            char[] separador    = { '-' };
            String seleccionado = lisVehiculo.SelectedItem.ToString();

            String[] aux_vehi = seleccionado.Split(separador);
            if (seleccionado == null)
            {
                MessageBox.Show("Ningun Elemento seleccionado de la lista...");
            }
            else
            {
                if (cantidad.Text == null || cantidad.Text.Equals(""))
                {
                    MessageBox.Show("Porfavor Ingresar La cantidad de Vehiculos A Comprar");
                }
                else
                {
                    Validar_Numeros val = new Validar_Numeros();
                    if (val.valirdar_SoloNumeros(cantidad.Text) == false)
                    {
                        MessageBox.Show("Solo ingresar numeros en el campo Cantidad...");
                    }
                    else
                    {
                        int c   = Convert.ToInt32(cantidad.Text);
                        int aux = car.Canti_Vehiculos(aux_vehi[0]);
                        if (c > aux)
                        {
                            MessageBox.Show("No hay suficientes vehiculos en el inventario..." + aux);
                        }

                        else
                        {
                            lisD_A.Items.Add(seleccionado + "-" + c);
                            t          = c * Convert.ToInt32(aux_vehi[1]);
                            s         += t;
                            total.Text = s.ToString();
                        }
                    }
                }
            }
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            String          mar  = txbMa.Text;
            String          mod  = txbMo.Text;
            String          pre  = txbP.Text;
            String          cant = txbC.Text;
            Validar_Numeros val  = new Validar_Numeros();

            if (mar == null || mar.Equals(""))
            {
                MessageBox.Show("Porfavor ingrese la Marca ....");
            }
            else
            {
                if (mod == null || mod.Equals(""))
                {
                    MessageBox.Show("Porfavor ingrese la Modelo ....");
                }
                else
                {
                    if (pre == null || pre.Equals(""))
                    {
                        MessageBox.Show("Porfavor ingrese la Marca ....");
                    }
                    else
                    {
                        bool aux = val.valirdar_SoloNumeros(pre);
                        if (aux == false)
                        {
                            MessageBox.Show("Porfavor Ingresar solo Numeros en el campo precio");
                        }
                        else
                        {
                            if (cant == null || cant.Equals(""))
                            {
                                MessageBox.Show("Porfavor ingrese la Cantidad ....");
                            }
                            else
                            {
                                bool aux_1 = val.valirdar_SoloNumeros(cant);
                                if (aux_1 == false)
                                {
                                    MessageBox.Show("Porfavor Ingresar solo Numeros en el campo Cantidad");
                                }
                                else
                                {
                                    lista.Add(new Agregando_Inventario_ {
                                        Marca    = mar, Modelo = mod, Precio = Convert.ToInt32(pre),
                                        Cantidad = Convert.ToInt32(cant)
                                    });
                                    MessageBox.Show("Agregado Correctamente ...");
                                    Fichero_Inventario fi = new Fichero_Inventario();
                                    fi.Agregando(mar, mod, pre, cant);
                                    TablaInv.ItemsSource = null;
                                    TablaInv.ItemsSource = lista;
                                    //Limpiando
                                    txbMa.Text = "";
                                    txbMo.Text = "";
                                    txbC.Text  = "";
                                    txbP.Text  = "";
                                }
                            }
                        }
                    }
                }
            }
        }