unit1.~pas

来自「实现DEA加密和解密算法」· ~PAS 代码 · 共 78 行

~PAS
78
字号
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    Panel1: TPanel;
    Label1: TLabel;
    Panel2: TPanel;
    Button3: TButton;
    Button2: TButton;
    Panel3: TPanel;
    FileListBox1: TFileListBox;
    DirectoryListBox1: TDirectoryListBox;
    DriveComboBox1: TDriveComboBox;
    Label2: TLabel;
    Label3: TLabel;
    FilterComboBox1: TFilterComboBox;
    Edit2: TEdit;
    Label7: TLabel;
    Panel4: TPanel;
    RadioGroup2: TRadioGroup;
    RadioGroup1: TRadioGroup;
    Edit1: TEdit;
    Label4: TLabel;
    procedure Button3Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);

  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation
uses Unit2, Unit3;

{$R *.dfm}




procedure TForm1.Button3Click(Sender: TObject);
begin
    if (edit2.Text='*.txt')or(edit2.Text='*.txt') then
       showmessage('请先选择要要加密的文件!')
    else
    if RadioGroup1.ItemIndex=-1 then
       showmessage('请先选择要信息块长度!')
    else
    begin
    Form2:=TForm2.Create(nil);
    Form2.show;
    end;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
     if (edit2.Text='*.txt')or(edit2.Text='*.txt') then
       showmessage('请先选择要要加密的文件!')
    else
    if RadioGroup1.ItemIndex=-1 then
       showmessage('请先选择要信息块长度!')
    else
    begin
    Form3:=TForm3.Create(nil);
    Form3.show;
    end;
end;
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?