-
Notifications
You must be signed in to change notification settings - Fork 2
/
Identificacion.cpp
39 lines (34 loc) · 1.29 KB
/
Identificacion.cpp
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
35
36
37
38
39
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Identificacion.h"
#include "configuracion.h"
#include "principal.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFormIdentificacion *FormIdentificacion;
//---------------------------------------------------------------------------
__fastcall TFormIdentificacion::TFormIdentificacion(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TFormIdentificacion::ButtonEntrarClick(TObject *Sender)
{
if (EditClave->Text == FormConfiguracion->ClaveIdentificacion())
{
ModalResult = mrOk;
}
}
//---------------------------------------------------------------------------
int TFormIdentificacion::Mostrar()
{
return ShowModal();
}
//---------------------------------------------------------------------------
void __fastcall TFormIdentificacion::FormCreate(TObject *Sender)
{
Caption = AnsiString("Identificación para ") + Application->Title.c_str();
}
//---------------------------------------------------------------------------