예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string name     = txtUserName.Text;
            string idSesion = txtpw.Text;

            //Validar el cuenta etc etc
            if (name == "chris" && idSesion == "jenni")
            {
                ViewPrincipal p = new ViewPrincipal(this, name, idSesion);
                p.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Disculpa, las claves son incorrectas");
            }
        }
예제 #2
0
 private void button5_Click(object sender, EventArgs e)
 {
     //Event to buy  public void agregarToList(string nombre, int cantidad, double costo, double total)
     ViewPrincipal.getDataProduct(nameProducto, cantidad, costo);
     this.Close();
 }