コード例 #1
0
ファイル: Authentification.cs プロジェクト: Blaccreed/Chaos
 public Authentification()
 {
     InitializeComponent();
     if (ORM.Connexion())
     {
         lbConnServeur.Text = "Connecté";
     }
     else
     {
         lbConnServeur.Text = "Déconnecté";
     }
 }
コード例 #2
0
ファイル: Inscription.cs プロジェクト: Blaccreed/Chaos
 public Inscription()
 {
     InitializeComponent();
     if (ORM.Connexion())
     {
         lbConn.Text = "On";
     }
     else
     {
         lbConn.Text = "Off";
     }
 }
コード例 #3
0
ファイル: Inscription.cs プロジェクト: Blaccreed/Chaos
 private void btValider_Click_1(object sender, EventArgs e)
 {
     if (ORM.InscriptionUser(tbUser.Text, tbEmail.Text, tbMDP.Text) == 0)
     {
         MessageBox.Show("Le compte a bien été enregistré");
     }
     else
     {
         Form f = new Authentification();
         this.Hide();
         f.Show();
     }
 }
コード例 #4
0
ファイル: Authentification.cs プロジェクト: Blaccreed/Chaos
        private void btSeConnecter_Click(object sender, EventArgs e)
        {
            if (ORM.Existe(tbUsername.Text, tbMDP.Text) == 1)
            {
                dashboard      = new Dashboard();
                dashboard.user = tbUsername.Text;
                dashboard.mdp  = tbMDP.Text;
                MessageBox.Show(tbUsername.Text);

                dashboard.Show();
                this.Hide();
            }

            else
            {
                MessageBox.Show("soucis");
            }
        }