Exemplo n.º 1
0
 public static CoordonnateurLogin GetInstance()
 {
     if (instance == null)
     {
         instance = new CoordonnateurLogin();
     }
     return instance;
 }
Exemplo n.º 2
0
 public static CoordonnateurLogin GetInstance()
 {
     if (instance == null)
     {
         instance = new CoordonnateurLogin();
     }
     return(instance);
 }
Exemplo n.º 3
0
 public void Init()
 {
     MembreDAO.TestMode = true;
     coord = CoordonnateurLogin.GetInstance();
     Console.WriteLine(MembreDAO.TestMode);
     //coord.Register("Mel", "Balvin", "*****@*****.**", "mel007", "mel007", Genre.FEMALE, null, null, 0);
     //coord.Register("Olivier", "Castro", "*****@*****.**", "castropeo", "monPassword", Genre.MALE, null, null, 0);
     //coord.Register("Mel", "Balvin", "*****@*****.**", "mel0007", "mel007", Genre.FEMALE, null, null, 0);
     //coord.Register("Mel", "Balvin", "*****@*****.**", "mel00007", "mel007", Genre.FEMALE, null, null, 0);
     coord.Register("Mel", "Balvin", "*****@*****.**", "mel007", "mel007", Genre.FEMALE, null, null, 0);
 }
        public void Init()
        {
            MembreDAO.TestMode = true;
            coordMembre = CoordonateurMembreCourant.GetInstance();
            coord = CoordonnateurLogin.GetInstance();

                coord.Register("FakeFirst", "FakeLast", "*****@*****.**", "FakeUser", "FakePass", Genre.MALE, null, null, 0);
                coord.Register("FakeFirst", "FakeLast", "*****@*****.**", "Amis1", "FakePass", Genre.MALE, null, null, 0);
                coord.Register("FakeFirst", "FakeLast", "*****@*****.**", "Amis2", "FakePass", Genre.MALE, null, null, 0);

            coord.Login("FakeUser", "FakePass");
            mdtoCourant = coordMembre.GetMembreCourant();
        }
Exemplo n.º 5
0
 /// <summary>
 /// Crée une nouvelle instance du coordonnateurLogin
 /// et enregistre le nouveau membre
 /// </summary>
 /// <param name="sender">Bouton Register</param>
 /// <param name="e"></param>
 private void BtnRegister_Click_1(object sender, RoutedEventArgs e)
 {
     coordinator = CoordonnateurLogin.GetInstance();
     if (ValidateFields())
     {
         coordinator.Register(TxtFirstName.Text, TxtLastName.Text, TxtEmail.Text,
             TxtUsername.Text, TxtPassword.Password.ToString(),
             RadMale.IsChecked == true ? Genre.MALE : Genre.FEMALE, filename, imageData, fileSize);
         this.Close();
     }
     else if (!errorShowned)
     {
         ShowErrors();
         errorShowned = true;
     }
 }
Exemplo n.º 6
0
 public WinLogin()
 {
     InitializeComponent();
     coordinator = CoordonnateurLogin.GetInstance();
     initialiserFenetre();
 }