示例#1
0
 private void frmAbonados_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.Hide();
     fpr = (Principal)this.Owner;
     fpr.Pri_Load(usu);
     fpr.Show();
 }
示例#2
0
文件: Login.cs 项目: MBLopez/Asada07
 /// <summary>
 /// Evento click del boton aceptar
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnAceptar_Click(object sender, EventArgs e)
 {            
     usu = new Usuario();
     //pr = new Principal(usu);
     pr = (Principal) this.Owner;
     if (txtPassword.Text.Trim() == "" || txtUser.Text.Trim() == "")
     {
         MessageBox.Show(this, "Campos en blanco detectados, verifique!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         usu.Name = txtUser.Text.Trim();
         usu.Password = txtPassword.Text.Trim();
         con = new Connection(usu);
         if (con.Conexion())
         {
             this.Hide();
             pr.Pri_Load(usu);
             pr.Show();                    
         }
         else
         {
             MessageBox.Show(this, "Usuario o contraseña incorrectos, Verifique!", "Advertencia!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }
示例#3
0
 private void btnOut_Click(object sender, EventArgs e)
 {
     this.Hide();
     fpr = (Principal)this.Owner;
     fpr.Pri_Load(usu);
     fpr.Show();
 }
示例#4
0
 private void frmAbonados_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.Hide();
     fpr = (Principal)this.Owner;
     fpr.Pri_Load(usu);
     fpr.Show();
 } 
示例#5
0
 private void btnOut_Click(object sender, EventArgs e)
 {
     this.Hide();
     fpr = (Principal)this.Owner;
     fpr.Pri_Load(usu);
     fpr.Show();
 }
示例#6
0
 private void frmPrevistas_FormClosed(object sender, FormClosedEventArgs e)
 {
     fpr = (Principal)this.Owner;
     fpr.Pri_Load(user);
     fpr.Show();
 }
示例#7
0
 private void frmPrevistas_FormClosed(object sender, FormClosedEventArgs e)
 {
     fpr = (Principal)this.Owner;
     fpr.Pri_Load(user);
     fpr.Show();
 }