unit Main;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs,
  {}
  FormOsoby, StdCtrls, Buttons, ExtCtrls;


type
  TFMain = class(TForm)
    Panel1: TPanel;
    btnKONIEC_PRACY: TBitBtn;
    btnOSOBY: TBitBtn;
    procedure btnOSOBYClick(Sender: TObject);
    procedure btnKONIEC_PRACYClick(Sender: TObject);

  private

  public

  end;

var
  FMain: TFMain;

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

procedure TFMain.btnOSOBYClick(Sender: TObject);
begin
	if not Assigned(FOsoby) then
	begin
    	FOsoby := TFOsoby.Create(Self);
      (*
      LUB
      FOsoby := TFOsoby.Create(Application);
      LUB
      FOsoby := TFOsoby.Create(Nil);
      *)
      FOsoby.Show();
   end
   else begin
      FOsoby.Show();
   end;
end;

end.
