惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
T
Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
Intezer
C
Cyber Attacks, Cyber Crime and Cyber Security
The Register - Security
The Register - Security
量子位
Security Latest
Security Latest
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
MyScale Blog
MyScale Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Spread Privacy
Spread Privacy
Jina AI
Jina AI
博客园 - 【当耐特】
P
Palo Alto Networks Blog
Last Week in AI
Last Week in AI
SecWiki News
SecWiki News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
G
GRAHAM CLULEY
宝玉的分享
宝玉的分享
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
有赞技术团队
有赞技术团队
T
Tor Project blog
H
Hacker News: Front Page
A
Arctic Wolf
NISL@THU
NISL@THU
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
Engineering at Meta
Engineering at Meta
V
V2EX
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
I
InfoQ
D
Docker
L
LINUX DO - 最新话题
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
U
Unit 42

博客园 - 追逐苦痛

20230509001 - DataTable 导出成Excel 20230425001 - DataGridView绑定了数据之后, 再添加CheckBox列的解决方案 20230424001 - 打开文件对话框OpenFileDialog类 20200812001 - SQL openquery 传参数 ASP.net用Graphics实现的统计图(折线图、柱状图、饼图) 20190917002 - SQL 中处理交叉重复条件参考 20190917001 - 去除DataTable中重复的数据 20190410001 - 遍历控件参考 20180706001 - 动态添加 tabPage 20180519001 - DataTable Group by功能参考 20161020001 DataGridView 选中的 DataGridViewCheckBoxCell 不添加重复项 20161014006 DataGridView Combobox 数据绑定与传值 20161014001 DataGridView 单元格内容 自动计算 20161013001 DataGridView 数据转 DataTable 20161011001 treeView 递归 20160929001 Guid生成 20160815001 - 修改字段的长度 20160715001 - 分发与订阅 总结 20160712001 SQL server R2 更名
20180709001 - 委托传值
追逐苦痛 · 2018-07-09 · via 博客园 - 追逐苦痛

Main  :  Frm_MRP_P

Sub   :  Frm_SO_S_Selected

Frm_SO_S_Selected

    public partial class Frm_SO_S_Selected : Form
    {
        //声明委托
        public delegate void TransfDelegate(DataSet ds);
        //声明事件
        public event TransfDelegate TransfEvent;

        // List
        private void btn_List_Click(object sender, EventArgs e)
        {
                MRP.Frm_MRP_P Frm_MRP_P = new MRP.Frm_MRP_P();
                //Frm_MRP_P.MRP_P_DataSet108 = DataSet2.Copy();

                //触发事件  //此处调用你的取数据的方法,将数据付给ds
                TransfEvent(DataSet2);
                this.Hide();
        }

//-----------------------------------

Frm_MRP_P

    public partial class Frm_MRP_P : Form
    {

        // search
        private void btn_search_Click(object sender, EventArgs e)
        {           

            sales.Frm_SO_S_Selected SO_S_Selected = new sales.Frm_SO_S_Selected();
            SO_S_Selected.TransfEvent += new sales.Frm_SO_S_Selected.TransfDelegate(frm_TransfEvent);
            SO_S_Selected.ShowDialog();
        }

        private void frm_TransfEvent(DataSet ds)
        {
            //this.dataGridView1.DataSource = ds.Tables[0]; //此处就是你给DataGridView绑定数据的方法
            if (ds != null)
            {
                dgv_M.DataSource = ds.Tables[0];
            }
            else
            {
                dgv_M.Focus();
            }
        }