• Winform窗体初始化Listview控件


    #region 初始化历史播放列表
    /// <summary>
    /// 初始化历史播放列表
    /// </summary>
    private void InitHistoryPlayList(string date, string deviceID)
    {
    try
    {
    this.lvwHistoryPlaylists.Items.Clear();
    List
    <CheckedItRecord> checkItRecordList = timsControl.GetPublishSuccessInfo(date, deviceID);
    if (checkItRecordList != null)
    {
    foreach (CheckedItRecord checkedItRecord in checkItRecordList)
    {
    ListViewItem lvitem
    = new ListViewItem();
    lvitem.Tag
    = checkedItRecord.RecordID;
    lvitem.SubItems[
    0].Text = "";
    lvitem.SubItems.Add(checkedItRecord.BeginTime.ToString());
    lvitem.SubItems.Add(checkedItRecord.Content);
    lvwHistoryPlaylists.Items.Add(lvitem);
    }
    }
    }
    catch (Exception exp)
    {
    MessageBox.Show(
    "初始化当前播放列表出错!");
    }
    }
    #endregion
  • 相关阅读:
    python 获取当前时间
    PHP基础
    python 编码
    系统分区表 MBR GPT
    python mysql like查询的写法
    JSP JavaBean
    jsp MVC
    python 正则例子
    Java版A星算法
    linux 部署subversion独立服务器
  • 原文地址:https://www.cnblogs.com/smartsensor/p/2031800.html
Copyright © 2020-2023  润新知