1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| begin
Application.Initialize;
Application.CreateForm(TFpassword, Fpassword);
if Fpassword.validerClick(Sender) then // validerClick normalement c'est l'appelle de l'évenement OnClick du
// bouton Valider
if RzEdit2.text=rzedit1.Text then // ici le test du text tappé
begin
FSplash := TFSplash.Create(Application);
FSplash.Show;FSplash.Update; //-------------
Application.CreateForm(TPrincipale, Principale);
Application.CreateForm(TAjouModif, AjouModif);
Application.CreateForm(TFdirection, Fdirection);
Application.CreateForm(TFEtat, FEtat);
Application.CreateForm(TFLangue, FLangue);
Application.CreateForm(TFSalle, FSalle);
Application.CreateForm(TFTypeArchive, FTypeArchive);
Application.CreateForm(TFAMTypeArchive, FAMTypeArchive);
Application.CreateForm(TFAMDirection, FAMDirection);
Application.CreateForm(TFAMSalleArchive, FAMSalleArchive);
Application.CreateForm(TFAMEtatArchive, FAMEtatArchive);
Application.CreateForm(TFAMLangueArchive, FAMLangueArchive);
Application.CreateForm(TFSupArchive, FSupArchive);
Application.CreateForm(TFermer, Fermer);
Application.CreateForm(TFSearch, FSearch);
//Application.CreateForm(TFpassword, Fpassword);
Application.CreateForm(TFLocalisation, FLocalisation);
Application.CreateForm(TFSERCH1, FSERCH1);
Application.CreateForm(TFApropos, FApropos);
FSplash.Close;FSplash.Release;//-------------
Application.Run;
end
else
Application.Terminate;
end. |
Partager