UI/商品资料窗口/商品资料窗体.cs

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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;
using 收银系统.Data;

namespace 收银系统.UI.商品资料窗口
{
    public partial class 商品资料窗体 : Form
    {
        商品资料 商品资料表;

        public 商品资料窗体()
        {
            InitializeComponent();
        }

        private void 商品资料窗体_Shown(object sender, EventArgs e)
        {
            商品资料表 = new 商品资料();
            textBox1.Focus();
            加载类别();

        }

        #region 类别相关
        


        //加载类别
        private void 加载类别()
        {
            List<string> 类别集=  商品资料表.取类别集();

            comboBox1.Items.Clear();

            comboBox1.Items.Add("选择类别:");
            comboBox1.Items.Add("全部商品资料");

            comboBox1.SelectedIndex = 0;

            foreach (string item in 类别集)
            {
                comboBox1.Items.Add(item);
            }

        }

        //选择和查询类别
        private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex == 0)
            {
                return;
            }
            else if (comboBox1.SelectedIndex == 1)
后面还有 283 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。