📄 upanelform.pas
字号:
unit uPanelForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, uInterface;
type
TPanelForm = class(TForm, IPhotoNotify)
private
fPhotoMgr :IPhotoMgr;
private
//实现IPhotoNotify接口
function SelPhoto(const photoID:Integer):Boolean;
function NewPhoto(const photoID:Integer):Boolean;
function DelPhoto(const photoID:Integer):Boolean;
function Refresh():Boolean;
function PropChange(const photoID:Integer):Boolean;
public
procedure SetPhotoMgr(photoMgr:IPhotoMgr);
end;
var
PanelForm: TPanelForm;
implementation
{$R *.dfm}
{ TPanelForm }
{//////////////////////////////////////////////////////////////////////////////}
function TPanelForm.DelPhoto(const photoID: Integer): Boolean;
begin
Result := True;
end;
{------------------------------------------------------------------------------}
function TPanelForm.NewPhoto(const photoID: Integer): Boolean;
begin
Result := True;
ShowMessage('New Photo' + IntToStr(photoID));
end;
{------------------------------------------------------------------------------}
function TPanelForm.PropChange(const photoID: Integer): Boolean;
begin
Result := True;
end;
{------------------------------------------------------------------------------}
function TPanelForm.Refresh: Boolean;
begin
Result := True;
end;
{------------------------------------------------------------------------------}
function TPanelForm.SelPhoto(const photoID: Integer): Boolean;
begin
Result := True;
end;
{------------------------------------------------------------------------------}
procedure TPanelForm.SetPhotoMgr(photoMgr: IPhotoMgr);
begin
fPhotoMgr := photoMgr;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -