-
Notifications
You must be signed in to change notification settings - Fork 0
/
BorrowDynamics.h
31 lines (29 loc) · 930 Bytes
/
BorrowDynamics.h
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
//---------------------------------------------------------------------------
#ifndef BorrowDynamicsH
#define BorrowDynamicsH
//---------------------------------------------------------------------------
struct TBorrowItem
{
bool Back;
String Name;
unsigned char Condition;
System::TDateTime Date;
System::TDateTime BackDate;
String Items;
int ReturnEntry;
};
//---------------------------------------------------------------------------
class TBorrowList : public TList
{
protected:
TBorrowItem * __fastcall GetBor(int Index);
void __fastcall PutBor(int Index, TBorrowItem *Item);
public:
//Konstrukcja i destrukcja
__fastcall TBorrowList();
__fastcall virtual ~TBorrowList();
//Propertiesy
__property TBorrowItem * Items[int Index] = {read=GetBor, write=PutBor/*, default*/};
};
//---------------------------------------------------------------------------
#endif