Beispiel #1
0
        private void button8_Click(object sender, EventArgs e)
        {
            string[] cadenas       = new string[Compra.Mostrar().Count];
            string[] cadenasAnimal = new string[Compra.MostrarAnimales().Count];
            for (int i = 0; i < Compra.Mostrar().Count; i++)
            {
                cadenas[i] = Compra.Mostrar()[i].Nombre;
            }
            for (int i = 0; i < Compra.MostrarAnimales().Count; i++)
            {
                cadenasAnimal[i] = Compra.MostrarAnimales()[i].Nombre;
            }
            Comprar comp = new Comprar(cadenas, cadenasAnimal);

            comp.Show(this);
            Hide();
            Compra.limpiar();
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Compra.limpiar();
     this.Visible = false;
     this.Owner.Show();
 }
Beispiel #3
0
 public Form1()
 {
     InitializeComponent();
     Compra.limpiar();
 }