unit Cliente;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Pai, DB, ImgList, ExtCtrls, DBCtrls, ComCtrls, ToolWin,
  StdCtrls, Mask;

type
  TF_Cliente = class(TF_Pai)
    GroupBox1: TGroupBox;
    Label3: TLabel;
    Label5: TLabel;
    Label6: TLabel;
    Label9: TLabel;
    Label12: TLabel;
    Label13: TLabel;
    Label1: TLabel;
    DBEdit2: TDBEdit;
    DBEdit3: TDBEdit;
    DBEdit4: TDBEdit;
    DBEdit5: TDBEdit;
    DBEdit6: TDBEdit;
    DBEdit1: TDBEdit;
    DBComboBox1: TDBComboBox;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormActivate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  F_Cliente: TF_Cliente;

implementation

uses DMConexao;

{$R *.dfm}

procedure TF_Cliente.FormClose(Sender: TObject; var Action: TCloseAction);
begin

  inherited;
  Dm.TbCliente.Close;
end;

procedure TF_Cliente.FormActivate(Sender: TObject);
begin

  inherited;
  Dm.TbCliente.Open;
end;

end.
