Unit Unit1

3
unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Borland.Vcl.StdCtrls, System.ComponentModel, Borland.Vcl.ExtCtrls; type TForm1 = class(TForm) Button1: TButton; Label1: TLabel; Edit1: TEdit; RadioGroup1: TRadioGroup; RadioButton1: TRadioButton; RadioButton2: TRadioButton; RadioButton3: TRadioButton; RadioButton4: TRadioButton; RadioButton5: TRadioButton; RadioButton6: TRadioButton; Image1: TImage; Button2: TButton; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.nfm}

description

kk

Transcript of Unit Unit1

unit Unit1;

unit Unit1;

interface

uses

Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

Dialogs, Borland.Vcl.StdCtrls, System.ComponentModel,

Borland.Vcl.ExtCtrls;

type

TForm1 = class(TForm)

Button1: TButton;

Label1: TLabel;

Edit1: TEdit;

RadioGroup1: TRadioGroup;

RadioButton1: TRadioButton;

RadioButton2: TRadioButton;

RadioButton3: TRadioButton;

RadioButton4: TRadioButton;

RadioButton5: TRadioButton;

RadioButton6: TRadioButton;

Image1: TImage;

Button2: TButton;

procedure Button1Click(Sender: TObject);

procedure Button2Click(Sender: TObject);

private

{ Private declarations }

public

{ Public declarations }

end;

var

Form1: TForm1;

implementation

{$R *.nfm}

procedure TForm1.Button1Click(Sender: TObject);

begin

if radiobutton1.Checked then

begin

edit1.Text:='1500000';

end

else

begin

if radiobutton2.Checked then

begin

edit1.Text:='1750000';

end

else

begin

if radiobutton3.Checked then

begin

edit1.Text:='2250000';

end

else

begin

if radiobutton4.Checked then

begin

edit1.Text:='3000000' ;

end

else

begin

if radiobutton5.Checked then

begin

edit1.Text:='2500000';

end

else

begin

if radiobutton6.Checked then

begin

edit1.Text:='1700000';

end;

end;

end;

end;

end;

end;

end;

procedure TForm1.Button2Click(Sender: TObject);

begin

application.Terminate;

end;

end.