c82504c18a
SVN-Revision: r1165
63 lines
1.6 KiB
C#
63 lines
1.6 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();
|
|
this.panel4.Visible = false;
|
|
this.Height = this.Height - this.panel4.Height;
|
|
downloadFileList = downloadfileList;
|
|
}
|
|
|
|
public FrmMain(List<DownloadFileInfo> downloadfileList, string text)
|
|
{
|
|
InitializeComponent();
|
|
downloadFileList = downloadfileList;
|
|
if (!string.IsNullOrWhiteSpace(text))
|
|
{
|
|
//this.richTextBox.Enabled = false;
|
|
this.richTextBox.ReadOnly = true;
|
|
this.richTextBox.SelectionLength = 0; // 禁止选中
|
|
this.richTextBox.Text = "更新说明:\r\n" + text;
|
|
|
|
}
|
|
else
|
|
{
|
|
this.panel4.Visible = false;
|
|
this.Height = this.Height - this.panel4.Height;
|
|
}
|
|
|