Last change
on this file was 238, checked in by chronos, 16 months ago |
- Modified: Removed U prefix from unit names.
- Fixed: Memory leaks.
|
File size:
618 bytes
|
Line | |
---|
1 | unit FormStorage;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, Machine;
|
---|
7 |
|
---|
8 | type
|
---|
9 |
|
---|
10 | { TFormStorage }
|
---|
11 |
|
---|
12 | TFormStorage = class(TFormDevice)
|
---|
13 | ListView1: TListView;
|
---|
14 | protected
|
---|
15 | function GetDevice: TDevice; override;
|
---|
16 | procedure SetDevice(AValue: TDevice); override;
|
---|
17 | public
|
---|
18 | Storage: TDeviceStorage;
|
---|
19 | end;
|
---|
20 |
|
---|
21 |
|
---|
22 | implementation
|
---|
23 |
|
---|
24 | {$R *.lfm}
|
---|
25 |
|
---|
26 | { TFormStorage }
|
---|
27 |
|
---|
28 | function TFormStorage.GetDevice: TDevice;
|
---|
29 | begin
|
---|
30 | Result := Storage;
|
---|
31 | end;
|
---|
32 |
|
---|
33 | procedure TFormStorage.SetDevice(AValue: TDevice);
|
---|
34 | begin
|
---|
35 | if AValue is TDeviceStorage then
|
---|
36 | Storage := TDeviceStorage(AValue);
|
---|
37 | end;
|
---|
38 |
|
---|
39 | end.
|
---|
40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.