zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    Bacula Plugins
    getopt、getopt_long命令参数
    Notepad++ 快捷键
    make命令
    Linux目录结构
    rhel安装输入法
    libtool编译
    install和cp
    dlopen动态链接库操作
    结构体赋值
  • 原文地址:https://www.cnblogs.com/smartsensor/p/2031800.html
Copyright © 2011-2022 走看看