Example #1
0
 public void ValidarUsuario(String Usuario, String Clave)
 {
     try
     {
         XmlDocument XML = HelperNHibernate.ExecuteView("vSF_Usuario", String.Format(" UserID = '{0}' AND Contrasena = '{1}'", Usuario, Clave));
         if (XML.HasChildNodes)
         {
             foreach (XmlNode NodoItem in XML.DocumentElement.ChildNodes)
             {
                 Usuario User = (Usuario)HelperNHibernate.GetEntityByID("Usuario", NodoItem.SelectSingleNode("@ID").Value);
                 CargarSyn(User.Skyn);
                 FrmMain FrmMain = new FrmMain();
                 FrmMain.IniciarAplicacion(User);
                 Hide();
             }
         }
         else
         {
             throw new Exception("Usuario o Clave Incorrectos ...");
         }
     }
     catch (Exception ex)
     {
         SoftException.Control(ex, SystemIcons.Warning.ToBitmap());
     }
 }
Example #2
0
 public override void Start()
 {
     FrmMain.RefreshView();
     base.m_ResultProcess = EnumResult.SUCESS;
     base.Start();
 }
Example #3
0
 private void ugDetails_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
 {
     FrmMain.ModificarEntidad();
 }