Files
lserp_cs_6.0/插件库/Lskj.AutoUpdate/FrmMain.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

72 lines
1.9 KiB
C#

/******************************
* 说明:下载确认界面
* 创建人:龚宇超
* 创建日期:2018-02-09
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.AutoUpdate
{
/// <summary>
/// 下载确认界面
/// </summary>
public partial class FrmMain : Form
{
/// <summary>
/// 下载文件列表
/// </summary>
List<DownloadFileInfo> downloadFileList = null;
public FrmMain()
: this(null)
{
}
public FrmMain(List<DownloadFileInfo> downloadfileList)
{
InitializeComponent();
downloadFileList = downloadfileList;
}
/// <summary>
/// <para>说明:窗口加载</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-02-23 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
private void OnLoad(object sender, EventArgs e)
{
foreach (DownloadFileInfo file in this.downloadFileList)
{
ListViewItem item = new ListViewItem(new string[] { file.FileName, file.LastVersion, file.Size.ToString() });
}
this.Activate();
this.Focus();
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
}
}