添加老商品.cs

来自「用C#实现超市的管理」· CS 代码 · 共 55 行

CS
55
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Yewucheng;
namespace Myproject
{
    public partial class 添加老商品 : Form
    {
        public 添加老商品()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            加入所选择商品 terpe = new 加入所选择商品(this);
            terpe.Show();



        }

     
        private void button1_Click_1(object sender, EventArgs e)
        {
            点击新商品 tianjia = new 点击新商品(this);
            tianjia.Show();
        }

       

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

            wang xinshangping = new wang();
            DataSet da = xinshangping.SelectMand("select *from NewTianjsp");
            this.dataGridView1.DataSource = da.Tables[0].DefaultView;


            DataSet ds = xinshangping.SelectMand("select *from NewTianjsp");
            this.dbgname.DataSource = ds.Tables[0].DefaultView;

        }

    
      

      
       
    }
}

⌨️ 快捷键说明

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