unit Main;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, ToolWin, ComCtrls;

type
  TMainForm = class(TForm)
    ControlBar1: TControlBar;
    ToolBar1: TToolBar;
    Image4: TImage;
    Image3: TImage;
    Image2: TImage;
    Image1: TImage;
    ToolBar2: TToolBar;
    Image9: TImage;
    Image8: TImage;
    Image7: TImage;
    Image6: TImage;
    Image5: TImage;
    ToolBar3: TToolBar;
    Image14: TImage;
    Image13: TImage;
    Image12: TImage;
    Image11: TImage;
    Image10: TImage;
    procedure Image4Click(Sender: TObject);

  private

  public
	 procedure Koniec();
  end;

var
  MainForm: TMainForm;

implementation
{$R *.dfm}
{------------------------------------------------------------------------------}
procedure TMainForm.Image4Click(Sender: TObject);
begin
	Koniec();
end;

procedure TMainForm.Koniec();
begin
	if Application.MessageBox('Koniec pracy', 'Uwaga', MB_ICONINFORMATION or MB_YESNO) = mrYes then
	begin
		Close();
   end;
end;

end.
