unit MainForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Buttons, ComCtrls, ExtCtrls, ActnList, StdCtrls, Grids, DBGrids,
  {}
  DataModule;

type
  TFMain = class(TForm)
    Panel1: TPanel;
    StatusBar1: TStatusBar;
    sbStop: TSpeedButton;
    ActionList1: TActionList;
    ActionClose: TAction;
    DBGrid1: TDBGrid;
    procedure ActionCloseExecute(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);

  private

  public

  end;

var
  FMain: TFMain;

implementation
{$R *.dfm}
{------------------------------------------------------------------------------}
procedure TFMain.ActionCloseExecute(Sender: TObject);
begin
   Close();
end;

procedure TFMain.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  DM.ClientDataSet1.Close();
  DM.SQLDataSet1.Close();
  DM.SQLConnection1.Close();
end;

end.
