⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form_basic_buytype.cs

📁 以前为一家4S店开发的维修管理及客户管理的软件,C#开发!
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RepairCRM
{
    public partial class Form_Basic_Buytype : RepairCRM.main
    {
        public Form_Basic_Buytype()
        {
            InitializeComponent();
        }

        private void Form_Basic_Buytype_Load(object sender, EventArgs e)
        {
            // TODO: 这行代码将数据加载到表“dataSet_Tables.buytype”中。您可以根据需要移动或移除它。
            //this.buytypeTableAdapter.Fill(this.dataSet_Tables.buytype);


        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.buytypeTableAdapter.Fill(this.dataSet_Tables.buytype,textBox1.Text.Trim());
        }

        

        private void button3_Click(object sender, EventArgs e)
        {
            this.buytypeTableAdapter.Update(this.dataSet_Tables.buytype);
        }

       

        private void button5_Click(object sender, EventArgs e)
        {
            DialogResult i = System.Windows.Forms.DialogResult.Cancel;
            if (textBox1.Text.Trim() == "")
            {
                MessageBox.Show("请输入将要删除数据的ID号");
            }
            else
            {
                i = MessageBox.Show("确实要删除ID [ " + textBox1.Text.Trim() + " ] 吗!", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
            }
            if (i==System.Windows.Forms.DialogResult.OK)
            {
                //this.buytypeTableAdapter.Delete(int.Parse(this.textBox1.Text.Trim()));
                this.textBox1.Text = null;
                this.buytypeTableAdapter.Fill(this.dataSet_Tables.buytype, textBox1.Text.Trim());
            }
            
        }

       

               
     }
}

⌨️ 快捷键说明

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