private void timer1_Tick(object sender, EventArgs e)
        {
            if (_HosterParent.ProcessState.CurrentProcessContent != null)
            {
                VersionUpdateFileInfo dataInfo = _HosterParent.ProcessState.CurrentProcessContent as VersionUpdateFileInfo;
                ListViewItem          lstItem  = getListViewByData(dataInfo);
                lstItem.EnsureVisible();
                if (dataInfo.Completed)
                {
                    lstItem.ForeColor = Color.Black;
                }

                // lstItem.SubItems[3].Text = System.Convert.ToInt32(dataInfo.HasDownLoad * 100 / dataInfo.FileLength).ToString() + "%";
                lstItem.SubItems[3].Text = VersionDownloadHelper.DividendToInt32(dataInfo.HasDownLoad * 100, dataInfo.FileLength).ToString() + "%";
                //if (lstItem.Index > 0) {
                //    lsvDownFiles.Items[lstItem.Index - 1].ForeColor = Color.Black;
                //    lsvDownFiles.Items[lstItem.Index - 1].SubItems[3].Text = "100%";
                //}
            }


            if (_HosterParent.ProcessState.Processed)
            {
                this.Close();
            }
        }
        //根据Info 创建listview 的item
        private System.Windows.Forms.ListViewItem createItemByInfo(VersionUpdateFileInfo dataInfo)
        {
            ListViewItem item = new ListViewItem(dataInfo.FileName);

            item.ForeColor = dataInfo.Completed ? Color.Black : Color.Blue;

            item.SubItems.Add(dataInfo.ChildDirectoryName);
            if (dataInfo.FileLength < 1000)
            {
                item.SubItems.Add("1 KB");
            }
            else
            {
                item.SubItems.Add((dataInfo.FileLength / 1000).ToString() + " KB");
            }

            item.SubItems.Add(VersionDownloadHelper.DividendToInt32(dataInfo.HasDownLoad * 100, dataInfo.FileLength).ToString() + "%");
            item.SubItems.Add(dataInfo.Remark);
            item.Tag = dataInfo;

            return(item);
        }