unit Main;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ExtCtrls,
  Unit2;


type
  TMainForm = class(TForm)
    Panel2: TPanel;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    procedure BitBtn2Click(Sender: TObject);
    procedure BitBtn1Click(Sender: TObject);

  private

  public

  end;

var
  MainForm: TMainForm;

implementation
{$R *.dfm}

procedure TMainForm.BitBtn1Click(Sender: TObject);
begin
	Close();
end;

procedure TMainForm.BitBtn2Click(Sender: TObject);
begin
   Form2 := TForm2.Create(Self);
   Form2.ShowModal();
   FreeAndNil(Form2);
end;

end.
