You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.6 KiB
Plaintext

unit u_sys_update_tell;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, bsSkinCtrls, BusinessSkinForm,ShellApi;
type
Tfrm_sys_update_tell = class(TForm)
bsBusinessSkinForm1: TbsBusinessSkinForm;
bsSkinButton1: TbsSkinButton;
bsSkinButton5: TbsSkinButton;
bsSkinButton3: TbsSkinButton;
procedure bsSkinButton1Click(Sender: TObject);
procedure bsSkinButton3Click(Sender: TObject);
procedure bsSkinButton5Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frm_sys_update_tell: Tfrm_sys_update_tell;
implementation
uses u_main,my_sys_function, u_sys_update;
{$R *.dfm}
procedure Tfrm_sys_update_tell.bsSkinButton1Click(Sender: TObject);
begin
close;
if if_open('158') then
begin
if update_soft_banben() then
begin
try
if not ASSIGNED(frm_sys_update) then
frm_sys_update:=tfrm_sys_update.Create(application);
frm_sys_update.ShowModal;
finally
frm_sys_update.free;
frm_sys_update:=nil;
end;
end;
end
else
begin
if update_soft_banben_bendi(frm_main.db) then
begin
ShellExecute(Application.Handle,nil,PChar(ExtractFilePath(Application.ExeName)+'update.exe'),nil,nil,SW_NORMAL);
application.Terminate;
end;
end;
end;
procedure Tfrm_sys_update_tell.bsSkinButton3Click(Sender: TObject);
begin
frm_main.Timer2.Interval:=1000*10*60;
close;
end;
procedure Tfrm_sys_update_tell.bsSkinButton5Click(Sender: TObject);
begin
frm_main.Timer2.enabled:=false;
close;
end;
end.