www.pudn.com > Desktop-Manager.rar > Unit2.pas, change:2004-04-28,size:790b


unit Unit2; 
 
interface 
 
uses 
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 
  Dialogs, StdCtrls; 
 
type 
  TForm2 = class(TForm) 
    Label1: TLabel; 
    Edit1: TEdit; 
    Button1: TButton; 
    Button2: TButton; 
    procedure Button1Click(Sender: TObject); 
    procedure Button2Click(Sender: TObject); 
  private 
    { Private declarations } 
  public 
    { Public declarations } 
  end; 
 
var 
  Form2: TForm2; 
 
implementation 
uses Unit1; 
{$R *.dfm} 
 
procedure TForm2.Button1Click(Sender: TObject); 
begin 
  if Edit1.Text='' then 
    ShowMessage('ͼƬ') 
  else 
  begin 
    PicName:=Edit1.Text; 
    sign1:=true; 
    close; 
  end;   
end; 
 
procedure TForm2.Button2Click(Sender: TObject); 
begin 
  close; 
end; 
 
end.