Example #1
0
 public vProcCompra(PictureBox pict, string sala, string precio, int disponibles, frmentrada frm)
 {
     InitializeComponent();
     pictureBox9.Image = pict.Image;
     txtSala.Text      = sala;
     txtprecio2.Text   = precio;
     v = frm;
 }
Example #2
0
        private void btnlogin_Click(object sender, EventArgs e)
        {
            if ((txtusuario.Text != " ") && (txtcontra.Text != " "))
            {
                if ((txtusuario.Text == "Admin") && (txtcontra.Text == "123"))

                {
                    MessageBox.Show("Bienvenido: " + txtusuario.Text);
                }
                {
                    logeo = new frmentrada();
                    logeo.Show();
                    this.Hide();
                }
            }
        }