⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usurrogateview.pas

📁 Software Requirements1. Delphi 6 SP22. Oracle 8i R33. Raize 3.0.94. ExpressQuantumGrid 4.505. Expres
💻 PAS
字号:
unit USurrogateView;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, UView, RzCommon, jpeg, RzBckgnd, ExtCtrls, RzPanel,
  MyTools, MyView, UModel, MyFactory; 

type
  TSurrogateView = class(TView, ISurrogate)
  private
    Surrogate: IView;
{---------------------------------------- ISurrogate ----------------------------------------}
  public
    procedure SetSurrogate(Surrogate: IView); virtual;
    function GetSurrogate: IView; virtual;
  public
    function GetModel: TModel; override;
    function GetModelFactory: TModelFactory; override;
    procedure Refresh(Parameters: IParameters); override;
  end;

implementation

{$R *.dfm}

{ TSurrogateView }

function TSurrogateView.GetModel: TModel;
begin
  Result := GetSurrogate.GetModel;
end;

function TSurrogateView.GetModelFactory: TModelFactory;
begin
  Result := GetSurrogate.GetModelFactory;
end;

function TSurrogateView.GetSurrogate: IView;
begin
  Result := Surrogate;
end;

procedure TSurrogateView.Refresh(Parameters: IParameters);
begin
  inherited;
  GetSurrogate.Refresh(Parameters);
end;

procedure TSurrogateView.SetSurrogate(Surrogate: IView);
begin
  Self.Surrogate := Surrogate;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -