Exemplo n.º 1
0
 public void activateREG(string NickName, string Email, string Name, string Surname, string Pass, string RePass)
 {
     if (!valide_key)
     {
         lblERROR.Content = REGErrorText(NickName, Email, Name, Surname, Pass, RePass);
         if (!error_key)
         {
             SE = new SQL_Explorer(lblERROR, SQL); SE.ValidOpeningREG(NickName, Email, Name, Surname, Pass); if (SE.ActivateSession == true)
             {
                 SE.Session(); if (SE.ActivateSession)
                 {
                     valide_key = true; MessageBox.Show(SE.User.Name.ToString());                                                                                                                                                                                 /*Site.Send(PersonInfo);Site.generateKeyLing()*/
                 }
             }
         }
     }
     else
     {
         lblERROR.Content = " Session was initialized! ";
     }
 }
Exemplo n.º 2
0
 public void activateLOG(string NickName, string Pass)
 {
     if (!valide_key)
     {
         lblERROR.Content = LOGErrorText(NickName, Pass);
         if (!error_key)
         {
             SE = new SQL_Explorer(lblERROR, SQL); SE.ValidOpeningLOG(NickName, Pass); if (SE.ActivateSession == true)
             {
                 SE.Session(); if (SE.ActivateSession)
                 {
                     valide_key = true; MessageBox.Show(SE.User.Name.ToString());
                 }
             }
         }
     }
     else
     {
         lblERROR.Content = " Session was initialized! ";
     }
 }