unit ViewList;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;

type
  TViewList = class(TForm)
    GroupBox3: TGroupBox;
    txtStartDate: TEdit;
    txtEndDate: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    btnConfirmRequest: TButton;
    btnCancelRequest: TButton;
    procedure btnConfirmRequestClick(Sender: TObject);
    procedure btnCancelRequestClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    function GetDataInicio: String;
    function GetDataFim: String;
  public
    property DataInicio: String read GetDataInicio;
    property DataFim:    String read GetDataFim;
  end;

implementation

{$R *.dfm}

function TViewList.GetDataInicio: String;
begin
  Result := txtStartDate.Text;
end;

procedure TViewList.btnCancelRequestClick(Sender: TObject);
begin
  ModalResult := mrCancel;
end;

procedure TViewList.btnConfirmRequestClick(Sender: TObject);
begin
  ModalResult := mrOk
end;

procedure TViewList.FormCreate(Sender: TObject);
begin
  Self.Position := poScreenCenter;
end;

function TViewList.GetDataFim: String;
begin
  Result := txtEndDate.Text;
end;

end.
