classlist.cs

来自「超市POS收银系统c.rar」· CS 代码 · 共 34 行

CS
34
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace FOUPOS
{
    public partial class ClassList : Form
    {
        public ClassList()
        {
            InitializeComponent();
        }

        private void ClassList_Load(object sender, EventArgs e)
        {
            BindClass();
        }
        private void BindClass()
        {
            POS.BLL.FClass b_Class = new POS.BLL.FClass();
            DataSet ds = b_Class.GetAllList();
            ListViewItem item;
            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                item = new ListViewItem(ds.Tables[0].Rows[i]["CUnit"].ToString());
                lvClass.Items.Add(item);
            }           
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?