-
Notifications
You must be signed in to change notification settings - Fork 0
/
Historia.cpp
38 lines (30 loc) · 1.23 KB
/
Historia.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
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Historia.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
THistorico *Historico;
//------------------------------------------------------------------------------
__fastcall THistorico::THistorico(TComponent* Owner)
: TForm(Owner)
//------------------------------------------------------------------------------
{
}
//------------------------------------------------------------------------------
void __fastcall THistorico::BClearHistoryClick(TObject *Sender)
//------------------------------------------------------------------------------
{
Historico->Mhistory->Lines->Clear();
}
//------------------------------------------------------------------------------
void __fastcall THistorico::bGrabarHistoriaClick(TObject *Sender)
//------------------------------------------------------------------------------
{
TDateTime Fecha;
Fecha = Now();
SaveDialog1->FileName = "Historia" + Fecha.FormatString("yyyy-MM-dd HH.mm");
if (SaveDialog1->Execute())
Historico->Mhistory->Lines->SaveToFile(SaveDialog1->FileName);
}